question

newuser-91ca7c75-277e-460e-a45d-daffe1dfd336 avatar image

How can I get all scopes used in LWA?

Hi Team,


Followed with documents[login-with-amazon](https://developer.amazon.com/zh/docs/login-with-amazon/web-docs.html ), when I want to get a auth code, I can request like:


```

 https://www.amazon.com/ap/oa
?client_id=amzn1.application-oa2-client.xxxxxxxxxxxxxxxxxx
&scope=profile
&state=xxxxxxxxxxxxxxxxxxxx
&response_type=code
&redirect_uri=https://xxxxxxxxxxxxxxxxxxxxxxxx

```


then I specified the scope to `profile`.


What i want to know is how many scopes I can specify when I do an auth-request?


Best Regards,

Jimmy

login with amazondash replenishment service
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-91ca7c75-277e-460e-a45d-daffe1dfd336 avatar image
newuser-91ca7c75-277e-460e-a45d-daffe1dfd336 answered

Can anyone provide the list of various scope that we can request?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

You can pass several scopes at once in an Authorization request to /ap/oa endpoint separated by space:

https://developer.amazon.com/zh/docs/login-with-amazon/authorization-code-grant.html#authorization-request

There is no limit on the number of scopes that can be passed in the request as long as the URL size does not hit the browser, client, or server restrictions. It is advisable to restrict URL length to 2048 characters. Thanks!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.