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

[MNT-22836] - support of pkce o auth grant type by aims #3422

Merged
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
3 changes: 2 additions & 1 deletion app/src/app.config.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,8 @@
"clientId": "alfresco",
"scope": "openid",
"secret": "",
"implicitFlow": true,
"implicitFlow": false,
"codeFlow": true,
dominikiwanekhyland marked this conversation as resolved.
Show resolved Hide resolved
"silentLogin": true,
"publicUrls": ["**/preview/s/*", "**/settings", "**/blank"],
"redirectSilentIframeUri": "{protocol}//{hostname}{:port}/assets/silent-refresh.html",
7 changes: 7 additions & 0 deletions docker/docker-entrypoint.d/30-sed-on-appconfig.sh
Original file line number Diff line number Diff line change
@@ -50,6 +50,13 @@ if [ -n "${APP_CONFIG_OAUTH2_IMPLICIT_FLOW}" ]; then
-i "$APP_CONFIG_FILE"
fi

if [ -n "${APP_CONFIG_OAUTH2_CODE_FLOW}" ]; then
dominikiwanekhyland marked this conversation as resolved.
Show resolved Hide resolved
echo "SET APP_CONFIG_OAUTH2_CODE_FLOW"

sed -e "s/\"codeFlow\": [^,]*/\"codeFlow\": ${APP_CONFIG_OAUTH2_CODE_FLOW}/g" \
-i "$APP_CONFIG_FILE"
fi

if [ -n "${APP_CONFIG_OAUTH2_SILENT_LOGIN}" ]; then
echo "SET APP_CONFIG_OAUTH2_SILENT_LOGIN"

1 change: 1 addition & 0 deletions docs/getting-started/docker.md
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ docker run --rm -it \
| APP_CONFIG_OAUTH2_HOST | `oauth2.host` |
| APP_CONFIG_OAUTH2_CLIENTID | `oauth2.clientId` |
| APP_CONFIG_OAUTH2_IMPLICIT_FLOW | `oauth2.implicitFlow` |
| APP_CONFIG_OAUTH2_CODE_FLOW | `oauth2.codeFlow` |
| APP_CONFIG_OAUTH2_SILENT_LOGIN | `oauth2.silentLogin` |
| APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI | `oauth2.redirectSilentIframeUri` |
| APP_CONFIG_OAUTH2_REDIRECT_LOGIN | `oauth2.redirectUri` |
3 changes: 2 additions & 1 deletion docs/getting-started/sso.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,8 @@ You can find the settings in the `app.config.json` file, and they look similar t
"clientId": "alfresco",
"scope": "openid",
"secret": "",
"implicitFlow": true,
"implicitFlow": false,
"codeFlow": true,
"silentLogin": true,
"redirectSilentIframeUri": "./assets/silent-refresh.html",
"redirectUri": "/",
3 changes: 2 additions & 1 deletion docs/ja/getting-started/sso.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ Basic 認証に加えて、Content Application を以下で使用できます:
"clientId": "alfresco",
"scope": "openid",
"secret": "",
"implicitFlow": true,
"implicitFlow": false,
"codeFlow": true,
"silentLogin": true,
"redirectSilentIframeUri": "./assets/silent-refresh.html",
"redirectUri": "/",
Loading