Authorizing a personal access token for use with SAML single sign-on

To use a personal access token with an organization that uses SAML single sign-on (SSO), you must first authorize the token.

You can authorize an existing personal access token, or create a new personal access token and then authorize it.

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. For more information, see "About authentication with SAML single sign-on."

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. In the upper-right corner of any page, click your profile photo, then click Settings. Settings icon in the user bar
  2. In the left sidebar, click Developer settings. Developer settings
  3. In the left sidebar, click Personal access tokens. Personal access tokens
  4. Next to the token you'd like to authorize, click Enable SSO or Disable SSO. SSO token authorize button
  5. Find the organization you'd like to authorize the access token for.
  6. Click Authorize. Token authorize button

Further reading

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.