@ Override public Authentication execute ( ) throws Auth0Exception { Credentials credentials = credentialsRequest . execute ( ) ; UserProfile profile = userInfoRequest . addHeader ( HEADER_AUTHORIZATION , "Bearer " + credentials . getAccessToken ( ) ) . execute ( ) ; return new Authentication ( profile , credentials ) ; }
Logs in the user with Auth0 and fetches it s profile .