Skip to content

Commit

Permalink
feat(demo): better demo
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Nov 5, 2024
1 parent 85835ac commit 3881746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react-oidc-demo/public/staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"exclude": ["*.{svg,png,jpg,gif}", "*.{css,scss}", "*.js"]
},
"globalHeaders": {
"content-security-policy": "script-src 'self' 'unsafe-eval' ",
"content-security-policy": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://demo.duendesoftware.com; media-src 'self'; object-src 'none'; frame-src 'self' https://demo.duendesoftware.com; base-uri 'self'; form-action 'self'; frame-ancestors 'self' https://demo.duendesoftware.com; block-all-mixed-content; upgrade-insecure-requests;",
"Access-Control-Allow-Origin": "*",
"X-Frame-Options": "SAMEORIGIN",
"X-Permitted-Cross-Domain-Policies": "none",
Expand Down
4 changes: 4 additions & 0 deletions examples/react-oidc-demo/src/MultiAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const MultiAuth = ({ configurationName, handleConfigurationChange }) => {
</p>
<select value={configurationName} onChange={handleConfigurationChange}>
<option value="config_classic">config_classic</option>
<option value="config_with_monitor_session">config_classic_monitor_session</option>
<option value="config_without_refresh_token">config_without_refresh_token</option>
<option value="config_without_silent_login">config_without_silent_login</option>
<option value="config_without_refresh_token_silent_login">
Expand Down Expand Up @@ -151,6 +152,9 @@ export const MultiAuthContainer = () => {
silent_redirect_uri: '',
scope: 'openid profile email api offline_access',
},
config_with_monitor_session: {
monitor_session: true,
},
config_without_refresh_token_silent_login: {
...configurationIdentityServer,
redirect_uri: callBack,
Expand Down

0 comments on commit 3881746

Please sign in to comment.