redirect to oidc provider if configured correctly #2805
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#2805
Loading…
Reference in New Issue
No description provided.
Delete Branch "viehlieb/frontend:feature/redirect_to_oidc_logout_url_on_logout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Counterpart to
vikunja/api#1340
redirects to oidc provider on logout if configured.
Pls refer to config.yml.sample and above mentioned PR
Hi viehlieb!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://2805-feature-redirecttooidclogouturlo--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
@ -18,2 +18,4 @@
window.location.href = `${provider.authUrl}?client_id=${provider.clientId}&redirect_uri=${redirectUrl}${provider.key}&response_type=code&scope=openid email profile&state=${state}`
}
export const redirectToProviderOnLogout = (provider: IProvider) => {
if (provider.logoutUrl.length > 0) window.location.href = `${provider.logoutUrl}`
Please make this explicit:
We could make this more complicated and only redirect users who have an account on the openid provider which has a logout url configured, but it's fine as you implemented it.
Hey
Is there anything more needed to merge this request?
best!
viehlieb
Looks good - sorry for the late response.