2016-04-15 07:36:44 +00:00
|
|
|
- page_title "Personal Access Tokens"
|
2016-06-30 16:42:07 +00:00
|
|
|
= render 'profiles/head'
|
2016-04-15 07:36:44 +00:00
|
|
|
|
|
|
|
.row.prepend-top-default
|
|
|
|
.col-lg-3.profile-settings-sidebar
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
2016-06-03 03:37:37 +00:00
|
|
|
You can generate a personal access token for each application you use that needs access to the GitLab API.
|
2016-08-11 00:04:25 +00:00
|
|
|
%p
|
2016-08-17 22:21:18 +00:00
|
|
|
You can also use personal access tokens to authenticate against Git over HTTP.
|
|
|
|
They are the only accepted password when you have Two-Factor Authentication (2FA) enabled.
|
2016-08-11 00:04:25 +00:00
|
|
|
|
2016-04-15 07:36:44 +00:00
|
|
|
.col-lg-9
|
2016-06-02 02:57:47 +00:00
|
|
|
|
|
|
|
- if flash[:personal_access_token]
|
2016-06-10 03:19:05 +00:00
|
|
|
.created-personal-access-token-container
|
2016-06-09 08:38:49 +00:00
|
|
|
%h5.prepend-top-0
|
|
|
|
Your New Personal Access Token
|
|
|
|
.form-group
|
2016-06-10 03:19:05 +00:00
|
|
|
= text_field_tag 'created-personal-access-token', flash[:personal_access_token], readonly: true, class: "form-control", 'aria-describedby' => "created-personal-access-token-help-block"
|
2017-04-06 21:10:14 +00:00
|
|
|
= clipboard_button(text: flash[:personal_access_token], title: "Copy personal access token to clipboard", placement: "left")
|
2016-06-10 03:19:05 +00:00
|
|
|
%span#created-personal-access-token-help-block.help-block.text-danger Make sure you save it - you won't be able to access it again.
|
2016-06-09 08:38:49 +00:00
|
|
|
|
|
|
|
%hr
|
2016-06-02 02:57:47 +00:00
|
|
|
|
2017-03-01 16:59:03 +00:00
|
|
|
= render "shared/personal_access_tokens_form", path: profile_personal_access_tokens_path, impersonation: false, token: @personal_access_token, scopes: @scopes
|
2016-04-19 09:58:35 +00:00
|
|
|
|
2017-03-01 16:59:03 +00:00
|
|
|
= render "shared/personal_access_tokens_table", impersonation: false, active_tokens: @active_personal_access_tokens, inactive_tokens: @inactive_personal_access_tokens
|
2016-04-18 10:18:54 +00:00
|
|
|
|
|
|
|
:javascript
|
2016-06-09 08:38:49 +00:00
|
|
|
$("#created-personal-access-token").click(function() {
|
|
|
|
this.select();
|
|
|
|
});
|