Sam
01/22/2021, 10:08 PMinstall(Authentication) {
oauth {
client = oauthHttpClient
providerLookup = {
OAuthServerSettings.OAuth2ServerSettings(
name = "myOAuthServer",
authorizeUrl = "<https://myoauthserver/auth>",
accessTokenUrl = "<https://myoauthserver/token>",
clientId = "myClientID",
clientSecret = ""
)
}
urlProvider = { _ ->
"/"
}
}
}
In my route setup I have:
routing {
authenticate {
post("/submit") {
...
}
}
}
What I’m seeing while debugging is that it is trying to execute an OAuth callback routine to extract a code from the url. Failing that it redirects the client to get a code from the OAuth server.