Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES-223] #46

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sign-in-with-esignet/examples/html-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
prompt: "consent",
max_age: 21,
ui_locales: "en",
code_challenge: "",
code_challenge_method: "S256",
};

window.onload = function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ interface OidcConfigProp {
claims?: object;
claims_locales?: string;
ui_locales?: string;
code_challenge?: string;
code_challenge_method?: string;
display?: string;
max_age?: number;
prompt?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ function buildRedirectURL(oidcConfig: OidcConfigProp): string {
if (oidcConfig?.ui_locales)
urlToNavigate += "&ui_locales=" + oidcConfig.ui_locales;

if (oidcConfig?.code_challenge)
urlToNavigate += "&code_challenge=" + oidcConfig.code_challenge;

if (oidcConfig?.code_challenge_method)
urlToNavigate += "&code_challenge_method=" + oidcConfig.code_challenge_method;

return urlToNavigate;
}

Expand Down
2 changes: 2 additions & 0 deletions sign-in-with-esignet/src/stories/SignInWithEsignet.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export const SignInWithEsignetStory: Story = {
prompt: "consent",
max_age: 21,
ui_locales: "en",
code_challenge: "",
code_challenge_method: "S256",
},
buttonConfig: {
type: "standard",
Expand Down
4 changes: 3 additions & 1 deletion storybook-example/stories/SignInWithEsignet.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const oidcConfig = {
prompt: "consent",
max_age: 21,
ui_locales: "en",
code_challenge: "",
code_challenge_method: "S256",
};

const buttonConfig = {
Expand All @@ -26,7 +28,7 @@ const buttonConfig = {
};

const oidcConfigType =
'{\r\n authorizeUri: "string",\r\n redirect_uri: "string",\r\n client_id: "string",\r\n scope: "string",\r\n nonce: "string",\r\n state: "string",\r\n acr_values: "string",\r\n claims_locales: "string",\r\n ui_locales: "string",\r\n display: "page" | "popup" | "touch" | "wap",\r\n max_age: "number",\r\n prompt: "none" | "login" | "consent" | "select_account",\r\n}';
'{\r\n authorizeUri: "string",\r\n redirect_uri: "string",\r\n client_id: "string",\r\n scope: "string",\r\n nonce: "string",\r\n state: "string",\r\n acr_values: "string",\r\n claims_locales: "string",\r\n ui_locales: "string",\r\n code_challenge: "string",\r\n code_challenge_method: "string",\r\n display: "page" | "popup" | "touch" | "wap",\r\n max_age: "number",\r\n prompt: "none" | "login" | "consent" | "select_account",\r\n}';

const buttonType =
'{\r\n type: "standard" | "icon",\r\n theme: "outline" | "filled_orange" | "filled_black" | "custom",\r\n shape: "sharp_edges" | "soft_edges" | "rounded_edges",\r\n labelText: "string",\r\n logoPath: "string",\r\n width: "string",\r\n background: "string",\r\n textColor: "string",\r\n borderColor: "string",\r\n borderWidth: "string",\r\n font: "string",\r\n fontFamily: "string",\r\n customStyle: "Json-Object",\r\n}';
Expand Down