public class ProfileRequest extends java.lang.Object implements Request<Authentication>
Modifier and Type | Method and Description |
---|---|
ProfileRequest |
addParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Adds additional parameters for the login request
|
Authentication |
execute()
Logs in the user with Auth0 and fetches it's profile.
|
ProfileRequest |
setConnection(java.lang.String connection)
Set the connection used to authenticate
|
ProfileRequest |
setScope(java.lang.String scope)
Set the scope used to authenticate the user
|
void |
start(BaseCallback<Authentication> callback)
Starts the log in request and then fetches the user's profile
|
public ProfileRequest addParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
parameters
- as a non-null dictionarypublic ProfileRequest setScope(java.lang.String scope)
scope
- valuepublic ProfileRequest setConnection(java.lang.String connection)
connection
- namepublic void start(BaseCallback<Authentication> callback)
start
in interface Request<Authentication>
callback
- called on either success or failurepublic Authentication execute() throws Auth0Exception
execute
in interface Request<Authentication>
Auth0Exception
- when either authentication or profile fetch fails