Chuyển tới nội dung chính

Add Infoflow as an OAuth provider

This guide explains how to let users sign in to Casdoor with their account in Baidu Infoflow.


Learning outcomes​

  • Register an application in Infoflow and grant it permissions.
  • Add Infoflow as an OAuth provider in Casdoor.

What you need​

  • Administrator access to an Infoflow organization
  • Administrator access to the Casdoor admin console

Register an application in Infoflow​

  1. Sign in to Infoflow and open Infoflow applications.

  2. Register an application and note its AgentID.

    Application registration

    Application details

    AgentID of the application

  3. On the Setting tab, create a management group. In its address book permissions, add your organization structure, grant the application the permissions that it needs, and add the required sensitive interface permissions.

    Setting tab

    Address book permissions

    Sensitive interface permissions

  4. On the same page, copy the CorpID and the Secret.

    CorpID and Secret

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.

  2. Set Category to OAuth and Type to Infoflow.

  3. Fill in the fields:

    CasdoorInfoflow
    Client IDCorpID
    Client secretSecret
    Agent IDAgentID

    Infoflow provider in Casdoor

  4. Save the provider.

Next steps​

Add the provider to an application. See Add providers to an application.

See also​