Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/topics/access-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This can be run from anywhere, not necessarily from the host where MAS is runnin
sh ./misc/device-code-grant.sh [synapse-url] <scope>...
```

This will prompt you to open a URL in your browser, finish the authentication flow, and print the access token.
This will prompt you to open a URL in your browser, finish the authentication flow, and print the access and refresh tokens.

This can be used to get access to the MAS admin API:

Expand Down
2 changes: 1 addition & 1 deletion misc/device-code-grant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RESP="$(
{
"client_name": "CLI tool",
"client_uri": "https://github.com/element-hq/matrix-authentication-service/",
"grant_types": ["urn:ietf:params:oauth:grant-type:device_code"],
"grant_types": ["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],
"application_type": "native",
"token_endpoint_auth_method": "none"
}
Expand Down
Loading