Skip to content

Commit 12d269d

Browse files
committed
chore(javascript): add PROFILE scope to OIDC request constants for enhanced user profile access
1 parent 17700eb commit 12d269d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/javascript/src/constants/OIDCRequestConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const OIDCRequestConstants = {
5959
/**
6060
* The default scopes used in OIDC sign-in requests.
6161
*/
62-
DEFAULT_SCOPES: [ScopeConstants.OPENID, ScopeConstants.INTERNAL_LOGIN],
62+
DEFAULT_SCOPES: [ScopeConstants.OPENID, ScopeConstants.PROFILE, ScopeConstants.INTERNAL_LOGIN],
6363
},
6464
},
6565

packages/javascript/src/constants/ScopeConstants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
const ScopeConstants: {
3939
INTERNAL_LOGIN: string;
4040
OPENID: string;
41+
PROFILE: string;
4142
} = {
4243
/**
4344
* The scope for accessing the user's profile information from SCIM.
@@ -52,6 +53,13 @@ const ScopeConstants: {
5253
* is initiating an OpenID Connect authentication request.
5354
*/
5455
OPENID: 'openid',
56+
57+
/**
58+
* The OpenID Connect profile scope.
59+
* This scope allows the client to access the user's profile information.
60+
* It includes details such as the user's name, email, and other profile attributes.
61+
*/
62+
PROFILE: 'profile',
5563
} as const;
5664

5765
export default ScopeConstants;

0 commit comments

Comments
 (0)