You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual/docs/cmd/util/accesstoken/accesstoken-get.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,17 @@
1
-
# accesstoken get
1
+
# util accesstoken get
2
2
3
3
Gets access token for the specified resource
4
4
5
5
## Usage
6
6
7
7
```sh
8
-
accesstoken get [options]
8
+
util accesstoken get [options]
9
+
```
10
+
11
+
## Alias
12
+
13
+
```sh
14
+
accesstoken get
9
15
```
10
16
11
17
## Options
@@ -23,18 +29,21 @@ Option|Description
23
29
24
30
## Remarks
25
31
26
-
The `accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
32
+
!!! attention
33
+
The 'accesstoken get' command is deprecated. Please use 'util accesstoken get' instead.
34
+
35
+
The `util accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
27
36
28
37
## Examples
29
38
30
39
Get access token for the Microsoft Graph
31
40
32
41
```sh
33
-
accesstoken get --resource https://graph.microsoft.com
42
+
util accesstoken get --resource https://graph.microsoft.com
34
43
```
35
44
36
45
Get a new access token for SharePoint Online
37
46
38
47
```sh
39
-
accesstoken get --resource https://contoso.sharepoint.com --new
48
+
util accesstoken get --resource https://contoso.sharepoint.com --new
0 commit comments