- All Known Subinterfaces:
public interface OauthClient
A contract for an OAuth 2.0 client. This interface is the base class necessary for implementing OAuth 2.0 authorization code grant behavior. Given how generic the contract is, any pattern that relies on a redirect and a callback can be implemented with the contract. It could be used for implementing authentication with non standard or non supported standard providers, including OAuth 1.0. Those types of usages are not supported by this API and future major revisions may break their functionality. The client implementations are called through the
OauthController. A controller is created for each client bean and routes for the controller are registered in a route builder.
- James Kleeh
Method SummaryModifier and TypeMethodDescription
(io.micronaut.http.HttpRequest<?> originating)Responsible for redirecting to the authorization endpoint.
org.reactivestreams.Publisher<AuthenticationResponse>Responsible for receiving the authorization callback request and returning an authentication response.
- The provider name
(io.micronaut.http.HttpRequest<Map<String, Object>> request)Responsible for receiving the authorization callback request and returning an authentication response.
request- The callback request
- The authentication response