Spring Boot OAuth2 Authorization Server with a Next.js application using Auth.js #12841
Unanswered
MoalosiLiteboho
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how to i implement spring boot oauth2 server application to be able work with authjs seamlessly
RegisteredClient .withId(UUID.randomUUID().toString()) .clientId(clientId) .clientSecret("{bcrypt}$2a$10$mVnPMI0GDnKfWKdxuCk9ueALiiTybZkLvLO5B0g2iq0.W8SPawTqO") .clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_BASIC) .authorizationGrantTypes(grantTypes -> grantTypes.addAll(Set.of( AuthorizationGrantType.CLIENT_CREDENTIALS, AuthorizationGrantType.AUTHORIZATION_CODE, AuthorizationGrantType.REFRESH_TOKEN))) .redirectUri("http://localhost:3000/api/auth/callback/spring") .scopes(scopes -> scopes.addAll(Set.of("user.read", "user.write", OidcScopes.OPENID))) .build() );
Beta Was this translation helpful? Give feedback.
All reactions