Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
56da7a59
Commit
56da7a59
authored
Feb 15, 2022
by
Evan Read
Committed by
Russell Dickenson
Feb 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve access token wording for deprecation
parent
55f21346
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
doc/integration/oauth_provider.md
doc/integration/oauth_provider.md
+9
-12
No files found.
doc/integration/oauth_provider.md
View file @
56da7a59
...
...
@@ -86,23 +86,20 @@ To create an application for your GitLab instance:
When creating application in the
**Admin Area**
, you can mark it as _trusted_.
The user authorization step is automatically skipped for this application.
## Expiring
Access T
okens
## Expiring
access t
okens
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/21745) in GitLab 14.3.
By default, all new applications expire access tokens after 2 hours. In GitLab 14.2 and
earlier, OAuth access tokens had no expiration.
WARNING:
The ability to opt-out of expiring access tokens
[
is deprecated
](
https://gitlab.com/gitlab-org/gitlab/-/issues/340848
)
.
All existing integrations should be updated to support access token refresh.
All integrations should update to support access token refresh.
Access tokens expire in two hours which means that integrations that use them must support generating new access
tokens at least every two hours. Existing:
When creating new applications, you can opt-out of expiry for backward compatibility by clearing
**Expire access tokens**
when creating them. The ability to opt-out
[
is deprecated
](
https://gitlab.com/gitlab-org/gitlab/-/issues/340848
)
.
Existing:
-
Applications can have expiring access tokens. Edit the application and select
**Expire access tokens**
to enable them.
-
Applications can have expiring access tokens:
1.
Edit the application.
1.
Select
**Expire access tokens**
.
-
Tokens must be
[
revoked
](
../api/oauth2.md#revoke-a-token
)
or they don't expire.
When applications are deleted, all grants and tokens associated with the application are also deleted.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment