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 today = new Date();
|
||||||
const nodes = {
|
const nodes = {
|
||||||
EntityDescriptor: {
|
'md:EntityDescriptor': {
|
||||||
'@xmlns:md': 'urn:oasis:names:tc:SAML:2.0:metadata',
|
'@xmlns:md': 'urn:oasis:names:tc:SAML:2.0:metadata',
|
||||||
'@entityID': idpEntityId,
|
'@entityID': idpEntityId,
|
||||||
'@validUntil': new Date(today.setFullYear(today.getFullYear() + 10)).toISOString(),
|
'@validUntil': new Date(today.setFullYear(today.getFullYear() + 10)).toISOString(),
|
||||||
IDPSSODescriptor: {
|
'md:IDPSSODescriptor': {
|
||||||
'@WantAuthnRequestsSigned': false,
|
'@WantAuthnRequestsSigned': false,
|
||||||
'@protocolSupportEnumeration': 'urn:oasis:names:tc:SAML:2.0:protocol',
|
'@protocolSupportEnumeration': 'urn:oasis:names:tc:SAML:2.0:protocol',
|
||||||
KeyDescriptor: {
|
'md:KeyDescriptor': {
|
||||||
'@use': 'signing',
|
'@use': 'signing',
|
||||||
KeyInfo: {
|
'ds:KeyInfo': {
|
||||||
'@xmlns:ds': 'http://www.w3.org/2000/09/xmldsig#',
|
'@xmlns:ds': 'http://www.w3.org/2000/09/xmldsig#',
|
||||||
X509Data: {
|
'ds:X509Data': {
|
||||||
X509Certificate: {
|
'ds:X509Certificate': {
|
||||||
'#text': certificate,
|
'#text': certificate,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
NameIDFormat: {
|
'md:NameIDFormat': {
|
||||||
'#text': 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
|
'#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',
|
'@Binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
|
||||||
'@Location': idpSsoUrl,
|
'@Location': idpSsoUrl,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user