Flow To Authenticate End User

Extension-Flow.png

  1. Get ClientId for your extension from Lyearn Team. This will be common across users and uniq for an extension.

  2. End User will generate the API-Key form Lyearn UI.

  3. Once the extension has both ClientId(obtained from step 1) and API-Key(obtained from step 3) use the Authentication Steps mentioned here. Once authenticated lyearn will send AuthTokens use in subsequent Public-API calls.

    <aside> 💡 Authentication Steps Mention in detail Using Postman For Authentication With clientId and clientSecret/API-Key

    </aside>

Generate API-Key

  1. Visit the User-Profile Page

    Screenshot 2023-07-12 at 11.39.54 AM.png

  2. Go to 3 dot menu and Click on Personal API-Keys

    Screenshot 2023-07-12 at 11.38.16 AM.png

  3. Add name and then generate key.

    Screenshot 2023-07-12 at 11.38.52 AM.png

  4. Copy the generated keys as it will be visible to you only once. Keep it safe with you and don’t share with anyone. You can anytime come and revoke the keys.

    Screenshot 2023-07-12 at 11.38.59 AM.png

Authenticate

Using Postman For Authentication With clientId and clientSecret/API-Key