Skip to content

Commit fd4fe60

Browse files
committedFeb 26, 2025··
Revert ""custom" URLs for some OAuth2 endpoints replaced with standard ones (both backend and frontend)"
This reverts commit b099436.
1 parent 2c88c3f commit fd4fe60

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
 

‎backend/src/main/java/club/klabis/config/springdoc/SpringDocConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.swagger.v3.oas.annotations.security.SecurityScheme;
77

88
@SecurityScheme(name = "security_auth", type = SecuritySchemeType.OAUTH2,
9-
flows = @OAuthFlows(authorizationCode = @OAuthFlow(authorizationUrl = "/oauth2/authorize", tokenUrl = "/oauth2/token", scopes = {
9+
flows = @OAuthFlows(authorizationCode = @OAuthFlow(authorizationUrl = "/oauth/authorize", tokenUrl = "/oauth/token", scopes = {
1010
//@OAuthScope(name = "openid", description = "openid scope")
1111
})))
1212
public class SpringDocConfiguration {

‎backend/src/main/resources/application.yml

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ spring:
1111
security:
1212
oauth2:
1313
authorizationserver:
14+
endpoint:
15+
oidc:
16+
user-info-uri: /oidc/userinfo
17+
authorization-uri: /oauth/authorize
18+
token-uri: /oauth/token
1419
client:
1520
1000:
1621
registration:

‎frontend/app/services/auth.server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export const strategy = new OAuth2Strategy<User>(
6868

6969
authorizationEndpoint: `${
7070
import.meta.env.VITE_AUTH_SERVER
71-
}/oauth2/authorize`,
72-
tokenEndpoint: `${import.meta.env.VITE_AUTH_SERVER}/oauth2/token`,
71+
}/oauth/authorize`,
72+
tokenEndpoint: `${import.meta.env.VITE_AUTH_SERVER}/oauth/token`,
7373
redirectURI: `${import.meta.env.VITE_BASE_URL}/auth/callback`,
7474
tokenRevocationEndpoint: `${
7575
import.meta.env.VITE_AUTH_SERVER

0 commit comments

Comments
 (0)
Please sign in to comment.