2017-08-17 10:53:50 -04:00
|
|
|
- breadcrumb_title "Access Tokens"
|
2016-04-15 03:36:44 -04:00
|
|
|
- page_title "Personal Access Tokens"
|
2017-06-22 10:47:50 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2017-08-01 04:50:59 -04:00
|
|
|
|
2016-06-30 12:42:07 -04:00
|
|
|
= render 'profiles/head'
|
2016-04-15 03:36:44 -04:00
|
|
|
|
|
|
|
.row.prepend-top-default
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-4.profile-settings-sidebar
|
2016-04-15 03:36:44 -04:00
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
2016-06-02 23:37:37 -04:00
|
|
|
You can generate a personal access token for each application you use that needs access to the GitLab API.
|
2016-08-10 20:04:25 -04:00
|
|
|
%p
|
2016-08-17 18:21:18 -04: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-10 20:04:25 -04:00
|
|
|
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-8
|
2016-06-01 22:57:47 -04:00
|
|
|
|
|
|
|
- if flash[:personal_access_token]
|
2016-06-09 23:19:05 -04:00
|
|
|
.created-personal-access-token-container
|
2016-06-09 04:38:49 -04:00
|
|
|
%h5.prepend-top-0
|
|
|
|
Your New Personal Access Token
|
|
|
|
.form-group
|
2017-08-01 04:50:59 -04:00
|
|
|
= text_field_tag 'created-personal-access-token', flash[:personal_access_token], readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block"
|
2017-04-06 17:10:14 -04:00
|
|
|
= clipboard_button(text: flash[:personal_access_token], title: "Copy personal access token to clipboard", placement: "left")
|
2016-06-09 23:19:05 -04: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 04:38:49 -04:00
|
|
|
|
|
|
|
%hr
|
2016-06-01 22:57:47 -04:00
|
|
|
|
2017-03-01 11:59:03 -05:00
|
|
|
= render "shared/personal_access_tokens_form", path: profile_personal_access_tokens_path, impersonation: false, token: @personal_access_token, scopes: @scopes
|
2016-04-19 05:58:35 -04:00
|
|
|
|
2017-03-01 11:59:03 -05:00
|
|
|
= render "shared/personal_access_tokens_table", impersonation: false, active_tokens: @active_personal_access_tokens, inactive_tokens: @inactive_personal_access_tokens
|