Skip to content
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

how to integrate Databucket with AD to use OAuthLogin? #119

Open
sfrubio opened this issue Oct 8, 2024 · 0 comments
Open

how to integrate Databucket with AD to use OAuthLogin? #119

sfrubio opened this issue Oct 8, 2024 · 0 comments

Comments

@sfrubio
Copy link

sfrubio commented Oct 8, 2024

I'm trying to configure Databucket to authenticate through Keycloak.
To do this, I've included the following Spring Security configuration in application.yaml:

spring:
   security:
      oauth2:
         client:
            registration:
               keycloak:
                  provider: QA
                  authorization-grant-type: authorization_code
                  client-id: databucket
                  client-secret: my-client-secret
               provider:
                  QA:
                     issuer-uri: http://localhost:8180/realms/QA
                     user-info-uri: http://localhost:8180/realms/QA/protocol/openid-connect/userinfo
                     jwk-set-uri: http://localhost:8180/realms/QA/protocol/openid-connect/certs
                     authorization-uri: http://localhost:8180/realms/QA/protocol/openid-connect/auth
                     token-uri: http://localhost:8180/realms/QA/protocol/openid-connect/token

With this configuration, I was expected to get the Keycloak login form.
Checking the frontend source code, I've found the following code in AuthPage.jsx:

            <Paper elevation={3}>
                <LoginFormComponent/>
                {authOptions.length > 0 && <Divider variant="middle"/>}
                {authOptions.length > 0 && <OauthLoginComponent
                    authOptions={authOptions}/>}

This code expect to get the auth options through a request to getBaseUrl("auth/auth-options"), but this request returns a web page with HTTP 404.

Do you have any example on how to integrate Databucket with AD to use OAuthLogin, just to check what I'm doing wrong? Or there is any path I should follow to procceed with OAuth login?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant