Closed kubukoz closed 3 years ago
we can consider adding in com.ocadotechnology.sttp.oauth2.AuthorizationCodeProvider#uriInstance
(and in other constructors) a parameter, something like: case class AuthorizationCodeConfig(loginPath=List("login"), logoutPath=List("logout"))
Yeah, that would probably work best
e.g. Spotify uses an
/authorize
path instead of/login
.Current workaround:
val uri = AuthorizationCodeProvider[Uri, F].loginLink(scope = scopes).path("authorize")
A similar situation happens for the
/token
path - in Spotify it's/api/token
.