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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
93cf4124
Commit
93cf4124
authored
Jul 12, 2019
by
Etienne Baqué
Committed by
Stan Hu
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add encrypted optional option to DeployToken authentication field
parent
63ade4b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
app/models/deploy_token.rb
app/models/deploy_token.rb
+1
-1
config/database.yml.example
config/database.yml.example
+0
-0
No files found.
app/models/deploy_token.rb
View file @
93cf4124
...
...
@@ -5,7 +5,7 @@ class DeployToken < ApplicationRecord
include
TokenAuthenticatable
include
PolicyActor
include
Gitlab
::
Utils
::
StrongMemoize
add_authentication_token_field
:token
add_authentication_token_field
:token
,
encrypted: :optional
AVAILABLE_SCOPES
=
%i(read_repository read_registry)
.
freeze
GITLAB_DEPLOY_TOKEN_NAME
=
'gitlab-deploy-token'
.
freeze
...
...
config/database.yml.example
0 → 100644
View file @
93cf4124
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