Skip to content

Commit 46cc1b8

Browse files
authored
Request a refresh token in the device-code-grant.sh helper script (#4974)
2 parents 156c23b + 829c20f commit 46cc1b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/topics/access-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This can be run from anywhere, not necessarily from the host where MAS is runnin
88
sh ./misc/device-code-grant.sh [synapse-url] <scope>...
99
```
1010

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

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

misc/device-code-grant.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RESP="$(
4545
{
4646
"client_name": "CLI tool",
4747
"client_uri": "https://github.com/element-hq/matrix-authentication-service/",
48-
"grant_types": ["urn:ietf:params:oauth:grant-type:device_code"],
48+
"grant_types": ["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],
4949
"application_type": "native",
5050
"token_endpoint_auth_method": "none"
5151
}

0 commit comments

Comments
 (0)