At least one redirect_uri must be registered with the client

visit this address
http://localhost:10002/oauth/authorize?response_type=code&client_id=awbeci&redirect_uri= http://www.awbeci.cn&scope=all
and report the following error after logging in:

Handling OAuth2 error: error="invalid_request", error_description="At least one redirect_uri must be registered with the client."

clipboard.png


address cannot be accessed


solved, add the following paragraph

to the application.properties
-sharp,
security.oauth2.client.registered-redirect-uri=http://example.com

clients
    .inMemory()
    .withClient("awbeci")
    .redirectUris("http://www.awbeci.cn&scope=all")
Menu