diff --git a/packages/core/src/saml-applications/libraries/consts.ts b/packages/core/src/saml-applications/libraries/consts.ts index cf8abae46..4eb72609d 100644 --- a/packages/core/src/saml-applications/libraries/consts.ts +++ b/packages/core/src/saml-applications/libraries/consts.ts @@ -20,3 +20,17 @@ export const samlLogInResponseTemplate = ` {AttributeStatement} `; + +export const samlAttributeNameFormatBasic = 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic'; + +const samlValueXmlnsXsiString = 'xs:string'; +const samlValueXmlnsXsiInteger = 'xsd:integer'; +const samlValueXmlnsXsiBoolean = 'xsd:boolean'; +const samlValueXmlnsXsiDatetime = 'xsd:dateTime'; + +export const samlValueXmlnsXsi = { + string: samlValueXmlnsXsiString, + integer: samlValueXmlnsXsiInteger, + boolean: samlValueXmlnsXsiBoolean, + datetime: samlValueXmlnsXsiDatetime, +}; diff --git a/packages/core/src/saml-applications/routes/anonymous.ts b/packages/core/src/saml-applications/routes/anonymous.ts index 743c79935..16c5c9e2c 100644 --- a/packages/core/src/saml-applications/routes/anonymous.ts +++ b/packages/core/src/saml-applications/routes/anonymous.ts @@ -9,7 +9,7 @@ import { fetchOidcConfig, getUserInfo } from '#src/sso/OidcConnector/utils.js'; import { SsoConnectorError } from '#src/sso/types/error.js'; import assertThat from '#src/utils/assert-that.js'; -import { samlLogInResponseTemplate } from '../libraries/consts.js'; +import { samlLogInResponseTemplate, samlAttributeNameFormatBasic,samlValueXmlnsXsi } from '../libraries/consts.js'; import { exchangeAuthorizationCode, generateAutoSubmitForm, createSamlResponse } from './utils.js'; @@ -129,14 +129,14 @@ export default function samlApplicationAnonymousRoutes