Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    OAuth 2.0

    # How to Integrate

    Zadig supports users logging in through OAuth 2.0 account authorization. Visit System Settings -> Integration -> Account System -> Click "Add" -> Select OAuth.

    oauth

    Parameter Description:

    Parameter NameDescription
    Client IDOAuth Client ID
    Client SecretOAuth Client Secret
    Authorization URLGet the Authorization Code URL
    Token URLGet the Access Token URL
    User Information URLURL to Get User Information
    Username Attribute (for Login)Username Attribute Field for Login
    User Nickname AttributeUser Nickname Attribute Field
    User Email AttributeUser Email Attribute Field
    User Phone AttributeUser mobile phone attribute field, optional
    ScopesRelevant fields requested from the account system; reference the account system's documentation for more details

    If the user information returned by your OAuth provider is not at the root level, you need to nest it using ..

    For example, in the following return sample, to correctly parse the user information, you need to set the username attribute to data.userinfo.user_id, the user nickname attribute to data.userinfo.fullname, and the user email attribute to data.userinfo.email.

    {
        "code": 0,
        "data": {
            "userinfo": {
                "user_id": "2022001",
                "fullname": "demo",
                "email": "demo@example.com"
            },
            "timestamp": 1655882773,
            ...
        }
        ...
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13

    # [Optional] Set as the Default Account System

    Refer to setting the default account system.

    ← LDAPGitHub→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式