Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Aug 4, 2023
2 parents 92cf608 + e96313c commit dd24fa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ You can use some query parameters to set initial state to the Editor.
* Usecase "Run UDP": For `wizard=UDP` you can provide a process in the query parameter `wizard~process` which has the same format as in `process` above and will open a wizard for this UDP.
* `preview-collection`: Shows the preview of a Collection on the map upon start.
* `result`: Loads a STAC Item or Collection in "App mode".
* `oidc~prompt`: Set the `prompt` parameter for the [OIDC authentication request](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest). For example: use value `login` to enforce a (re)login with the OIDC provider.

Example: <https://editor.openeo.org?server=https://earthengine.openeo.org&discover=1&process=https://raw.githubusercontent.com/Open-EO/openeo-earthengine-driver/master/tests/data/sample-processgraph.json>

Expand Down
7 changes: 7 additions & 0 deletions src/components/ConnectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ export default {
this.autoConnect = true;
}
// Allow enforcing a re-login with e.g. 'prompt=login' parameter on authentication request.
// See https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
let prompt = Utils.param('oidc~prompt');
if (['none', 'login', 'consent', 'select_account'].includes(prompt)) {
this.oidcOptions.prompt = prompt;
}
// Do this after the other initial work as the await delays execution and makes mounted run before created sometimes.
OidcProvider.uiMethod = 'popup';
try {
Expand Down

0 comments on commit dd24fa2

Please sign in to comment.