-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support both oiosaml2 and oiosaml3 attributes
- Loading branch information
1 parent
827f891
commit fe609b5
Showing
13 changed files
with
549 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/java/com/trifork/unsealed/BootstrapTokenIssuerParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.trifork.unsealed; | ||
|
||
public class OIOSAML2Constants { | ||
public static final String COMMON_NAME = "urn:oid:2.5.4.3"; | ||
public static final String SURNAME = "urn:oid:2.5.4.4"; | ||
public static final String CPR_NUMBER = "dk:gov:saml:attribute:CprNumberIdentifier"; | ||
public static final String CVR_NUMBER = "dk:gov:saml:attribute:CvrNumberIdentifier"; | ||
public static final String RID_NUMBER = "dk:gov:saml:attribute:RidNumberIdentifier"; | ||
public static final String PID_NUMBER = "dk:gov:saml:attribute:PidNumberIdentifier"; | ||
|
||
public static final String PRIVILEGES_INTERMEDIATE = "dk:gov:saml:attribute:Privileges_intermediate"; | ||
public static final String THROUGH_PROCURATION_BY = "urn:dk:gov:saml:actThroughProcurationBy:cprNumberIdentifier"; | ||
|
||
public static final String EMAIL = "urn:oid:0.9.2342.19200300.100.1.3"; | ||
public static final String ORGANIZATION_NAME = "urn:oid:2.5.4.10"; | ||
public static final String USER_CERTIFICATE = "urn:oid:1.3.6.1.4.1.1466.115.121.1.8"; | ||
public static final String CERTIFICATE_ISSUER = "urn:oid:2.5.29.29"; | ||
public static final String IS_YOUTH_CERT = "dk:gov:saml:attribute:IsYouthCert"; | ||
public static final String SPEC_VERSION = "dk:gov:saml:attribute:SpecVer"; | ||
public static final String CERTIFICATE_SERIAL = "urn:oid:2.5.4.5"; | ||
public static final String UID = "urn:oid:0.9.2342.19200300.100.1.1"; | ||
public static final String DISCOVERY_EPR = "urn:liberty:disco:2006-08:DiscoveryEPR"; | ||
|
||
public static final String SURNAME_FRIENDLY = "surName"; | ||
public static final String COMMON_NAME_FRIENDLY = "CommonName"; | ||
public static final String EMAIL_FRIENDLY = "email"; | ||
public static final String ORGANIZATION_NAME_FRIENDLY = "organizationName"; | ||
public static final String CERTIFICATE_SERIAL_FRIENDLY = "serialNumber"; | ||
public static final String UID_FRIENDLY = "Uid"; | ||
public static final String OIOSAML2_VERSION_NAME = "DK-SAML-2.0"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.trifork.unsealed; | ||
|
||
public class OIOSAML3Constants { | ||
public static final String COMMON_NAME = "https://data.gov.dk/model/core/eid/fullName"; | ||
public static final String GIVEN_NAME = "https://data.gov.dk/model/core/eid/firstName"; | ||
public static final String SURNAME = "https://data.gov.dk/model/core/eid/lastName"; | ||
public static final String CPR_NUMBER = "https://data.gov.dk/model/core/eid/cprNumber"; | ||
public static final String CVR_NUMBER = "https://data.gov.dk/model/core/eid/professional/cvr"; | ||
public static final String RID_NUMBER = "https://data.gov.dk/model/core/eid/professional/rid"; | ||
public static final String PID_NUMBER = "dk:gov:saml:attribute:PidNumberIdentifier"; | ||
public static final String CPR_UUID = "https://data.gov.dk/model/core/eid/cprUuid"; | ||
public static final String PROF_UUID = "https://data.gov.dk/model/core/eid/professional/uuid/persistent"; | ||
|
||
public static final String PRIVILEGES_INTERMEDIATE = "https://data.gov.dk/model/core/eid/privilegesIntermediate"; | ||
public static final String THROUGH_PROCURATION_BY = "urn:dk:gov:saml:actThroughProcurationBy:cprNumberIdentifier"; | ||
|
||
public static final String EMAIL = "https://data.gov.dk/model/core/eid/email"; | ||
public static final String ORGANIZATION_NAME = "https://data.gov.dk/model/core/eid/professional/orgName"; | ||
public static final String SPEC_VERSION = "https://data.gov.dk/model/core/specVersion"; | ||
public static final String BOOTSTRAP_TOKEN = "https://data.gov.dk/model/core/eid/bootstrapToken"; | ||
|
||
public static final String SURNAME_FRIENDLY = "surName"; | ||
public static final String COMMON_NAME_FRIENDLY = "CommonName"; | ||
public static final String EMAIL_FRIENDLY = "email"; | ||
public static final String ORGANIZATION_NAME_FRIENDLY = "organizationName"; | ||
public static final String CERTIFICATE_SERIAL_FRIENDLY = "serialNumber"; | ||
public static final String UID_FRIENDLY = "Uid"; | ||
public static final String OIOSAML3_VERSION_NAME = "OIOSAML-3.0"; | ||
public static final String OIOSAML_H_3_VERSION_NAME = "OIOSAML-H-3.0"; | ||
|
||
} |
Oops, something went wrong.