Skip to content

Disable redirect to oauth2/authorization/{registrationId} in oauth2 flow? #9261

@SMakhrov

Description

@SMakhrov

Hi!
Is it possible to disable redirect to oauth2/authorization/{registrationId} in oauth2 flow?
I have following properties for oauth2 flow in Spring Cloud Gateway, but nowhere I didn't specify url oauth2/authorization/{registrationId}:

security:
    oauth2:
      client:
        registration:
          smart_hub_client:
            provider: wso2is
            client-id: gateway
            client-secret: secret
            authorization-grant-type: authorization_code
            redirect-uri: "{baseUrl}/redirect_uri"
            scope: openid
        provider:
          wso2is:
            authorization-uri: http://localhost:8090/uaa/oauth/authorize
            token-uri: http://uaa:8090/uaa/oauth/token
            user-info-uri: http://uaa:8090/uaa/userinfo
            user-name-attribute: sub
            jwk-set-uri: http://uaa:8090/uaa/token_keys

But I see it in my request chain:
image

The Request URL from screenshot is here: https://uaa:8090/oauth2/authorization/smart_hub_client

Metadata

Metadata

Assignees

Labels

for: stackoverflowA question that's better suited to stackoverflow.com

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions