java.lang.Object | ||
↳ | com.amazon.identity.auth.device.interactive.InteractiveRequest.Builder<W extends com.amazon.identity.auth.device.interactive.InteractiveRequest<?, ?, ?, ?>> | |
↳ | com.amazon.identity.auth.device.api.authorization.AuthorizeRequest.Builder |
Instances of AuthorizeRequest
must be constructed using this Builder
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Requires that the
RequestContext that this request's listeners are registered to. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Request a scope in addition to the current set of scopes.
| |||||||||||
Request multiple scopes in addition to the current set of scopes.
| |||||||||||
Request a workflow in addition to the current set of workflows.
| |||||||||||
Request multiple workflows in addition to the current set of workflows.
| |||||||||||
Build the request instance specified by this builder.
| |||||||||||
Change the kind of result received upon authorization completion.
| |||||||||||
Upon authorization, the default behavior is to fetch and return user profile data in the
onSuccess(AuthorizeResult) via getUser() . | |||||||||||
On FireOS or Android devices which have the Amazon Shopping APP installed,,
upon authorization, there will be a consent page asking customers to grant permission for the specified scopes
of his Amazon account to your APP, and there should be a progress animation indicating data fetch from LWA.
| |||||||||||
Configure an authorization code request with a proof key for proof of possession, per RFC 7636.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Requires that the RequestContext
that this request's listeners are registered to.
context | Required. |
---|
Request a scope in addition to the current set of scopes.
scope | The given scope to request for. |
---|
Request multiple scopes in addition to the current set of scopes.
scopes | The given scopes to request for. |
---|
Request a workflow in addition to the current set of workflows.
workflow | The given workflow to request for. |
---|
Request multiple workflows in addition to the current set of workflows.
workflows | The given workflows to request for. |
---|
Build the request instance specified by this builder.
Change the kind of result received upon authorization completion.
By default, this is ACCESS_TOKEN
.
grantType | The kind of authorization grant to request. |
---|
Upon authorization, the default behavior is to fetch and return user profile data in the
onSuccess(AuthorizeResult)
via getUser()
. If this is set to
false
then user profile data is not returned, and the authorize request will finish without
incurring the cost of retrieving user profile data.
It may be desired to override the default behavior using this method in cases where user profile data is not desired, if no scopes for profile data are being requested, or if it is preferable to defer fetching of user profile data.
shouldReturnUserData | true to fetch return user data, false otherwise. |
---|
On FireOS or Android devices which have the Amazon Shopping APP installed,, upon authorization, there will be a consent page asking customers to grant permission for the specified scopes of his Amazon account to your APP, and there should be a progress animation indicating data fetch from LWA. If you don't want to show the consent page and spinner, you can use this API to turn it off. Note that if this flag is set false, the LWA authorization will fail, if the customer didn't grant permission for the specified scopes of his Amazon account to your APP yet. By default, the consent page and animation is enabled.
showProgress | true to turn on the dialog, false to turn off it. |
---|
Configure an authorization code request with a proof key for proof of possession, per RFC 7636.
codeChallenge | The OAuth 2.0 code challenged derived using the given codeChallengeMethod . |
---|---|
codeChallengeMethod | The method used to derive the codeChallenge , such as "S256". |