-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
DRAFT: Keycloak initial changes #6244
base: main
Are you sure you want to change the base?
Conversation
@@ -7,5 +7,6 @@ | |||
export const generateGitHubAuthUrl = (clientId: string, requestUrl: URL) => { | |||
const redirectUri = `${requestUrl.origin}/oauth/github/callback`; | |||
const scope = "repo,user,workflow,offline_access"; | |||
return `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`; | |||
// return `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`; | |||
return `http://localhost:8080/realms/allhandsgithub/protocol/openid-connect/auth?client_id=allhandsgithub&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}&scope=openid+email+profile&state=some-state-value&nonce=222`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is really the only thing we need to change here. We should probably have a getAuthURL
on the config that returns this, which could be configured to different auth providers
The other stuff here can probably get removed (e.g. no need for the OSS to have a "keycloak token" input, and we can handle the refresh logic in the SaaS backend)
WIP for keycloak integration.