redirect to oidc provider if configured correctly #2805

Merged
konrad merged 4 commits from viehlieb/frontend:feature/redirect_to_oidc_logout_url_on_logout into main 2023-01-11 21:17:55 +00:00
Contributor

Counterpart to
vikunja/api#1340

redirects to oidc provider on logout if configured.

Pls refer to config.yml.sample and above mentioned PR

Counterpart to https://kolaente.dev/vikunja/api/pulls/1340 redirects to oidc provider on logout if configured. Pls refer to config.yml.sample and above mentioned PR
viehlieb added 1 commit 2022-12-08 14:36:25 +00:00
continuous-integration/drone/pr Build is passing Details
f5c31bd209
redirect to oidc provider if configured correctly
Member

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!

Beep boop, I'm a bot.

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! > Beep boop, I'm a bot.
konrad requested changes 2022-12-08 15:41:22 +00:00
@ -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:

	if (provider.logoutUrl.length > 0) {
    	window.location.href = `${provider.logoutUrl}`
    }
Please make this explicit: ```js if (provider.logoutUrl.length > 0) { window.location.href = `${provider.logoutUrl}` } ```
Owner

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.

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.
viehlieb added 1 commit 2022-12-23 13:53:17 +00:00
continuous-integration/drone/pr Build is failing Details
5269cd1f8f
make if more explicit
Author
Contributor

Hey
Is there anything more needed to merge this request?
best!
viehlieb

Hey Is there anything more needed to merge this request? best! viehlieb
konrad added 1 commit 2023-01-11 21:02:40 +00:00
konrad added 1 commit 2023-01-11 21:05:22 +00:00
konrad approved these changes 2023-01-11 21:06:02 +00:00
konrad left a comment
Owner

Looks good - sorry for the late response.

Looks good - sorry for the late response.
konrad scheduled this pull request to auto merge when all checks succeed 2023-01-11 21:06:15 +00:00
konrad merged commit b719766062 into main 2023-01-11 21:17:55 +00:00
konrad deleted branch feature/redirect_to_oidc_logout_url_on_logout 2023-01-11 21:19:22 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.