Skip to content

Commit

Permalink
fix: add userinfo_endpoint properly
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Jul 28, 2024
1 parent b0984c1 commit a29ffbe
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function getOpenIdDiscoveryConfiguration(apiImplementation, options, userC
jwks_uri: result.jwks_uri,
authorization_endpoint: result.authorization_endpoint,
token_endpoint: result.token_endpoint,
userinfo_endpoint: result.userinfo_endpoint,
subject_types_supported: result.subject_types_supported,
id_token_signing_alg_values_supported: result.id_token_signing_alg_values_supported,
response_types_supported: result.response_types_supported,
Expand Down
1 change: 1 addition & 0 deletions lib/build/recipe/openid/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class OpenIdRecipeWrapper {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand Down
2 changes: 2 additions & 0 deletions lib/build/recipe/openid/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export declare type APIInterface = {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand All @@ -84,6 +85,7 @@ export declare type RecipeInterface = {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand Down
1 change: 1 addition & 0 deletions lib/build/recipe/session/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export default class SessionWrapper {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default async function getOpenIdDiscoveryConfiguration(
jwks_uri: result.jwks_uri,
authorization_endpoint: result.authorization_endpoint,
token_endpoint: result.token_endpoint,
userinfo_endpoint: result.userinfo_endpoint,
subject_types_supported: result.subject_types_supported,
id_token_signing_alg_values_supported: result.id_token_signing_alg_values_supported,
response_types_supported: result.response_types_supported,
Expand Down
2 changes: 2 additions & 0 deletions lib/ts/recipe/openid/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export type APIInterface = {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand All @@ -102,6 +103,7 @@ export type RecipeInterface = {
jwks_uri: string;
authorization_endpoint: string;
token_endpoint: string;
userinfo_endpoint: string;
subject_types_supported: string[];
id_token_signing_alg_values_supported: string[];
response_types_supported: string[];
Expand Down
1 change: 1 addition & 0 deletions test/with-typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,7 @@ Session.init({
jwks_uri: "https://your.api.domain/auth/jwt/jwks.json",
token_endpoint: "http://localhost:3000/auth/oauth2/token",
authorization_endpoint: "http://localhost:3000/auth/oauth2/auth",
userinfo_endpoint: "http://localhost:3000/auth/oauth2/userinfo",
id_token_signing_alg_values_supported: [],
response_types_supported: [],
subject_types_supported: [],
Expand Down

0 comments on commit a29ffbe

Please sign in to comment.