Content
View differences
Updated by Jan Sandbrink over 1 year ago
**As** an administrator
**I want to** receive feedback on configuration errors during setup have a feature to check tokens handed out by the OpenID Connect provider for usability in my Storage provider
**so that** I understand, whether the interaction between OpenProject, OpenProject and the IDP and yields tokens usable for accessing Nextcloud will work.
**Acceptance criteria**
* If no OIDC provider Feature is configured on OpenProject's side, it shows a warning
* Including a link available when user chooses to docs for setting up an authenticate through OIDC provider
* Including a link to docs for specific requirements for an OIDC provider used in this scenario
* If an OIDC provider is configured, show warning if provider is not set-up to request and has already entered the offline\_access scope
Nextcloud Client ID
* Including a link to docs for specific requirements for an OIDC provider used in this scenario
* Once a Nextcloud client ID has been entered, check suitability Feature performs checks with token of access token for the currently logged in user (usually the admin)
* If the token is deemed usable for use in Nextcloud:
* Show success (roughly: "IDP token is usable to access storage")
* If the token is not deemed usable for use in Nextcloud
* ... and if IDP offers no token exchange:
* show error (roughly: "IDP token does not seem suitable to access storage")
* ... and if IDP offers token exchange capability: Try to exchange token
* if exchange succeeds: show success (roughly: "IDP token could be exchanged for token to access storage")
* if exchange fails: show error (roughly: "Attempted token exchange failed")
* Also indicate correct configuration of OIDC provider: Show warning if provider is not set-up to request the offline\_access scope (which is supposed to result in long-lived refresh tokens that do not expire).
**I want to** receive feedback on configuration errors during setup
**so that** I understand, whether the interaction between OpenProject,
**Acceptance criteria**
* If no OIDC provider
* Including a link
* Including a link to docs for specific requirements for an OIDC provider used in this scenario
* If an OIDC provider is configured, show warning if provider is not set-up to request
* Once a Nextcloud client ID has been entered, check suitability
* Also indicate correct configuration of OIDC provider: Show warning if provider is not set-up to request the offline\_access scope (which is supposed to result in long-lived refresh tokens that do not expire).