debian-mirror-gitlab/app/views/profiles/personal_access_tokens/index.html.haml

59 lines
3 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- breadcrumb_title "Access Tokens"
2016-06-22 15:30:34 +05:30
- page_title "Personal Access Tokens"
2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2016-06-22 15:30:34 +05:30
.row.prepend-top-default
2017-09-10 17:25:29 +05:30
.col-lg-4.profile-settings-sidebar
2016-06-22 15:30:34 +05:30
%h4.prepend-top-0
= page_title
%p
You can generate a personal access token for each application you use that needs access to the GitLab API.
2016-09-13 17:45:13 +05:30
%p
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.
2017-09-10 17:25:29 +05:30
.col-lg-8
2018-03-17 18:26:18 +05:30
- if @new_personal_access_token
2018-12-05 23:21:45 +05:30
= render "shared/personal_access_tokens_created_container", new_token_value: @new_personal_access_token
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
= render "shared/personal_access_tokens_form", path: profile_personal_access_tokens_path, impersonation: false, token: @personal_access_token, scopes: @scopes
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
= render "shared/personal_access_tokens_table", impersonation: false, active_tokens: @active_personal_access_tokens, inactive_tokens: @inactive_personal_access_tokens
2018-03-17 18:26:18 +05:30
%hr
.row.prepend-top-default
.col-lg-4.profile-settings-sidebar
%h4.prepend-top-0
2018-11-08 19:23:39 +05:30
Feed token
2018-03-17 18:26:18 +05:30
%p
2019-02-15 15:39:39 +05:30
Your feed token is used to authenticate you when your RSS reader loads a personalized RSS feed or when your calendar application loads a personalized calendar, and is included in those feed URLs.
2018-03-17 18:26:18 +05:30
%p
It cannot be used to access any other data.
2018-11-08 19:23:39 +05:30
.col-lg-8.feed-token-reset
2018-11-18 11:00:15 +05:30
= label_tag :feed_token, 'Feed token', class: "label-bold"
2018-11-08 19:23:39 +05:30
= text_field_tag :feed_token, current_user.feed_token, class: 'form-control', readonly: true, onclick: 'this.select()'
%p.form-text.text-muted
Keep this token secret. Anyone who gets ahold of it can read activity and issue RSS feeds or your calendar feed as if they were you.
2018-03-17 18:26:18 +05:30
You should
2018-11-08 19:23:39 +05:30
= link_to 'reset it', [:reset, :feed_token, :profile], method: :put, data: { confirm: 'Are you sure? Any RSS or calendar URLs currently in use will stop working.' }
2018-03-17 18:26:18 +05:30
if that ever happens.
- if incoming_email_token_enabled?
%hr
.row.prepend-top-default
.col-lg-4.profile-settings-sidebar
%h4.prepend-top-0
Incoming email token
%p
Your incoming email token is used to authenticate you when you create a new issue by email, and is included in your personal project-specific email addresses.
%p
It cannot be used to access any other data.
.col-lg-8.incoming-email-token-reset
2018-11-18 11:00:15 +05:30
= label_tag :incoming_email_token, 'Incoming email token', class: "label-bold"
2018-03-17 18:26:18 +05:30
= text_field_tag :incoming_email_token, current_user.incoming_email_token, class: 'form-control', readonly: true, onclick: 'this.select()'
2018-11-08 19:23:39 +05:30
%p.form-text.text-muted
2018-03-17 18:26:18 +05:30
Keep this token secret. Anyone who gets ahold of it can create issues as if they were you.
You should
= link_to 'reset it', [:reset, :incoming_email_token, :profile], method: :put, data: { confirm: 'Are you sure? Any issue email addresses currently in use will stop working.' }
if that ever happens.