@EachBean(value=OauthClient.class) public class DefaultOauthController extends java.lang.Object implements OauthController
OauthController
.Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
callback(io.micronaut.http.HttpRequest<java.util.Map<java.lang.String,java.lang.Object>> request)
Receives the authorization callback from the OAuth 2.0 provider
and responds to the user.
|
OauthClient |
getClient() |
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
login(io.micronaut.http.HttpRequest<?> request)
Performs an authorization redirect to an OAuth 2.0 provider.
|
public OauthClient getClient()
getClient
in interface OauthController
@SingleResult public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> login(io.micronaut.http.HttpRequest<?> request)
OauthController
login
in interface OauthController
request
- The current request@SingleResult public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> callback(io.micronaut.http.HttpRequest<java.util.Map<java.lang.String,java.lang.Object>> request)
OauthController
callback
in interface OauthController
request
- The current request