Skip to main content

授权用于 SAML 单点登录的个人访问令牌

要将个人访问令牌用于使用 SAML 单点登录 (SSO) 的组织,必须先授权该令牌。


Before you can authorize a personal access token or SSH key, you must have a linked SAML identity. If you're a member of an organization where SAML SSO is enabled, you can create a linked identity by authenticating to your organization with your IdP at least once. 更多信息请参阅“关于使用 SAML 单点登录进行身份验证”。

After you authorize a personal access token or SSH key, the authorization does not expire. The token or key will stay authorized until revoked in one of these ways.

  • An organization owner revokes the authorization.
  • You are removed from the organization.
  • The scopes in a personal access token are edited, or the token is regenerated.
  1. 在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)用户栏中的 Settings 图标
  2. 在左侧边栏中,单击 Developer settings开发者设置
  3. 在左侧边栏中,单击 Personal access tokens(个人访问令牌)个人访问令牌
  4. 在要授权的令牌旁边,单击 Enable SSO(启用 SSO)Disable SSO(禁用 SSO)SSO 令牌授权按钮
  5. 找到要为其授权访问令牌的组织。
  6. 单击 Authorize(授权)令牌授权按钮