GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version

Use OAuth2.0 authorization code mode

1

Splice login authorization link

Splice login authorization link and guide users to click
2

Jump to GenAuth for authentication

Guide users to click the login link and jump to GenAuth for authentication
3

Handle callback

Use the authorization code code to exchange for AccessToken on the back end
4

Complete authentication

The server authenticates the user and executes the subsequent process
Splice login authorization link

You need to splice a login URL for users to click on, so as to jump to the authentication page.

GET
https://<your application domain name>.genauth.ai/oauth/auth

Splice a link and let the end user visit it in the browser to initiate an OAuth2.0 authorization login request.

To initiate authorization, you need to splice a URL for authorization and let the end user visit it in the browser. The specific parameters are as follows:

Query Parameters
client_id
REQUIRED
string

Application ID.

redirect_uri
REQUIRED
string

Callback link. After the user successfully authenticates the OP, the OP will send the authorization code to this address in the form of a URL query. This value must appear in the callback address configured in the console, otherwise the OP will not allow callbacks to this address.

scope
OPTIONAL
string

Required permissions, not yet implemented, please fill in user.

response_type
REQUIRED
string

Return type, you must fill in code here. Used to specify what information OP will return after successful login. If code is specified, OP will return the authorization code code. You can also specify token, and OP will return the user's access_token. For this method, please refer to the implicit mode section below.

state
REQUIRED
string

A random string used to prevent CSRF attacks. If the state value in the response is different from the state value set before sending the request, it means that you are under attack.

Request example:

https://<your application domain name>.genauth.ai/oauth/auth?client_id=5c9b079883e333d55a101082&redirect_uri=https://www.example.cn/example&scope=user&response_type=code&state=52378542395
Back to list

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.