added prefixes to idp metadata file (#104)
This commit is contained in:
parent
873a8bb11c
commit
fc5eca8091
16
utils/idp.ts
16
utils/idp.ts
@ -14,28 +14,28 @@ const createIdPMetadataXML = async ({
|
||||
|
||||
const today = new Date();
|
||||
const nodes = {
|
||||
EntityDescriptor: {
|
||||
'md:EntityDescriptor': {
|
||||
'@xmlns:md': 'urn:oasis:names:tc:SAML:2.0:metadata',
|
||||
'@entityID': idpEntityId,
|
||||
'@validUntil': new Date(today.setFullYear(today.getFullYear() + 10)).toISOString(),
|
||||
IDPSSODescriptor: {
|
||||
'md:IDPSSODescriptor': {
|
||||
'@WantAuthnRequestsSigned': false,
|
||||
'@protocolSupportEnumeration': 'urn:oasis:names:tc:SAML:2.0:protocol',
|
||||
KeyDescriptor: {
|
||||
'md:KeyDescriptor': {
|
||||
'@use': 'signing',
|
||||
KeyInfo: {
|
||||
'ds:KeyInfo': {
|
||||
'@xmlns:ds': 'http://www.w3.org/2000/09/xmldsig#',
|
||||
X509Data: {
|
||||
X509Certificate: {
|
||||
'ds:X509Data': {
|
||||
'ds:X509Certificate': {
|
||||
'#text': certificate,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
NameIDFormat: {
|
||||
'md:NameIDFormat': {
|
||||
'#text': 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
|
||||
},
|
||||
SingleSignOnService: [
|
||||
'md:SingleSignOnService': [
|
||||
{
|
||||
'@Binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
|
||||
'@Location': idpSsoUrl,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user