An auth handler that provides OAuth2 Authentication support. This handler is suitable for AuthCode flows.

no subtypes hierarchy

Initializer
OAuth2AuthHandler(OAuth2AuthHandler unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
addAuthoritiesshared actual default AuthHandler addAuthorities(Set<String> authorities)

Add a set of required authorities for this auth handler

Parameters:
  • authorities

    the set of authorities

addAuthorityshared actual default AuthHandler addAuthority(String authority)

Add a required authority for this auth handler

Parameters:
  • authority

    the authority

authURIshared default String authURI(String redirectURL, String state)

Build the authorization URL.

Parameters:
  • redirectURL

    where is the callback mounted.

  • state

    state opaque token to avoid forged requests

handleshared actual default void handle(RoutingContext arg0)
setupCallbackshared default OAuth2AuthHandler setupCallback(Route route)

add the callback handler to a given route.

Parameters:
  • route

    a given route e.g.: /callback

Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: AuthHandler