Authentication via your own OAuth 2.0 provider

How it works

You can add user authorization through your social network using the OAuth 2.0 protocol. To enable a button for your social network on the authorization widget, specify the provider details in Publisher Account.

How to get it

To enable authorization via OAuth 2.0:

  1. Open your project in Publisher Account and go to the Login section.
  2. Click Configure in the panel of a classic login option.
  3. Go to the Authentication block and select the OAuth 2.0 login connection.

  1. Fill in the following fields:
    • Authorization name — integration name. Used for identification in Publisher Account. It can contain digits, Latin letters, hyphens, and underscores without spaces, with a maximum length of 100 characters.
    • Authorization URL — URL of the method used for user authentication.
    • Token URL — URL of the method used for obtaining an access token.
    • Client ID — unique identifier of the client on the authorization server. It can contain digits, Latin letters, hyphens, and underscores without spaces, with a maximum length of 255 characters.
    • Client secret key — a unique ID generated by your authorization system. It can contain digits, Latin letters, hyphens, and underscores without spaces, with a length of 8-255.
    • Permission scope.
  2. Set up the Key name map:
    • Provide the key name for the email address in your system (optional).
    • Provide the key name for the user identifier in your system.
Note
Key names should start with $., for example, $.response[0].email and $.response[0].id.
  1. If you use the integration via the authorization widget, set up Customization:
    • Specify the Authorization button name. Maximum length — 30 characters.
    • Upload your logo. Recommended size: 24px × 24px. Supported formats: JPG, PNG and SVG.
    • Set the authorization button color.
    • Click Save changes.
  2. If you are using integration through the Login API methods, configure the transmission of your provider ID in the provider_name in the following format: “<authorization_name>-<publisher_id>”, where <authorization_name> — is the integration name you specified in the provider settings, аnd <publisher_id> — is the ID of your project in Publisher Account:
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Rate this page
Rate this page
Is there anything we can improve?

Don’t want to answer

Thank you for your feedback!
Last updated: November 28, 2023

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!