I have used spring security to implement my oauth2 client. I have configured my callback as http://localhost:8080/login/oauth2/code/abc, so when I test my app in my local environment the callback is going to https://localhost:8080/login/oauth2/code/abc, as https is not valid for localhost my browser is throwing an error because of which I could not test my application loally
spring:
profiles: local
security:
oauth2:
client:
registration:
abc:
client-id: OTExZDE3MGQtZTkyMy00YWZjLWFhZDItMGVmZTI1ZDQ3MGJm
client-secret: MzNlZWFhNDQtOGE4Mi00NDVkLWFiMTUtZjAzNWE2YmU2YWIz
authorization-grant-type: authorization_code
redirectUri: http://localhost:3000/login/oauth2/code/abc
scope:
- openid
- internal
provider:
abc:
authorization-uri: https://api.abc.com/oauth/authorize
token-uri: https://api.abc.com/oauth/token
jwk-set-uri: https://api.abc.com/oauth/keys