@Secured(value="isAnonymous()") public interface OauthController
OauthClient
.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.
|
OauthClient getClient()
@Executable @SingleResult org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> login(io.micronaut.http.HttpRequest<?> request)
request
- The current request@Executable @SingleResult org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> callback(io.micronaut.http.HttpRequest<java.util.Map<java.lang.String,java.lang.Object>> request)
request
- The current request