I ran the code from below url. This is used for oauth2.o authentication OAuth2Sample.java
I am trying to authenticate, but instead of google as auth server, i want to use okta or any corporate auth server.
How can i change the redirect url or token endpoints.
By default it uses google endpoints https://accounts.google.com/o/oauth2/auth
I want to override it to use my custom auth server endpoints.
Could appreciate if you can helpe me here.