Authing DocsDocuments
Concept
Guides
Development Integration
Application integration
Concept
Guides
Development Integration
Application integration
Old Version
Development Integration
  • Single Sign-On (SSO)
  • Login component

  • JavaScript/Node.js

  • Java / Kotlin

  • Python

  • C#

  • PHP

  • Go

  • Ruby
  • Android

  • iOS

  • Flutter

  • React Native
  • WeChat Mini Program
  • WeChat webpage authorization
  • Framework Integration
  • Error code
  1. Development Integration
  2. /
  3. Go

¶ Authing - Golang

Authing Golang SDK Composed of two parts: ManagementClient and AuthenticationClient.

AuthenticationClient use End User Identity, provide a way to log in, registration, logout, managing user data, access to all management user identity of authorized resources; this module also provides SDK of various identity protocols. Such as OpenID Connect, OAuth 2.0, SAML and CAS. This module is suitable for server environments for non-trusted browser environments and pure back-end interactions.

ManagementClient Administrator identity is requested, used to manage user pool resources and execute management tasks,Provide management users, roles, applications, resources, etc. Generally, you can do all operationsAuthing console (opens new window), can be done with this module. This module is suitable for use in front-end environments of the backend or trusted.

¶ GitHub download link

entryillustrate
Support versionGolang 1.8 +
Warehouse Addresshttps://github.com/Authing/authing-go-sdk (opens new window)

¶ Install

Install golang sdk, please run:

go get github.com/Authing/authing-golang-sdk

¶ Use management module

initialization ManagementClient need userPoolId and secret(UserPool Key):

You can here learn how to get UserPoolId and Secret .

func main() {
	client := management.NewClient(userPoolId, appSecret)
}

Now managementClient instances can be used. For example, all organizational data can be exported:

func main() {
	client := management.NewClient(userPoolId, appSecret)
  resp, err := client.ExportAll()
}

¶ Privatization deployment

Privatization Deployment Scene Need to specify the GraphQL endpoint of your privatized Authing service (without protocol head and Path) and password encryption key, if you don't know you can contact the Authing IDaaS service administrator.

Such as:

func main() {
  // Add parameter configuration custom domain name
	client := management.NewClient(userPoolId, appSecret, host)
}

¶ Get help

Join us on forum: #authing-chat (opens new window)

Prev: Management MFA Next: User authentication module
  • GitHub download link
  • Install
  • Use management module
  • Privatization deployment
  • Get help

User identity management

Integrated third-party login
Mobile phone number flash check (opens new window)
Universal login form component
Custom authentication process

Enterprise internal management

Single Sign On
Multi-factor Authentication
Authority Management

Developers

Development Document
Framework Integration
Blog (opens new window)
GitHub (opens new window)
Community User Center (opens new window)

Company

400 888 2106
sales@authing.cn
16 / F, Block B, NORTH STAR CENTURY CENTER, Beijing(Total)
room 406, 4th floor, zone B, building 1, No. 200, Tianfu Fifth Street, Chengdu(branch)

Beijing ICP No.19051205-1

© Beijing Steamory Technology Co.