Class DefaultOauthController

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<io.micronaut.http.HttpResponse> 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.HttpResponse> login​(io.micronaut.http.HttpRequest request)
      Performs an authorization redirect to an OAuth 2.0 provider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • login

        public org.reactivestreams.Publisher<io.micronaut.http.HttpResponse> login​(io.micronaut.http.HttpRequest request)
        Description copied from interface: OauthController
        Performs an authorization redirect to an OAuth 2.0 provider.
        Specified by:
        login in interface OauthController
        Parameters:
        request - The current request
        Returns:
        A redirecting http response
      • callback

        public org.reactivestreams.Publisher<io.micronaut.http.HttpResponse> callback​(io.micronaut.http.HttpRequest<java.util.Map<java.lang.String,​java.lang.Object>> request)
        Description copied from interface: OauthController
        Receives the authorization callback from the OAuth 2.0 provider and responds to the user.
        Specified by:
        callback in interface OauthController
        Parameters:
        request - The current request
        Returns:
        A response