idas

module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0

README

Identity authentication service

Introduction

Identity authentication service(身份认证服务) Implement a single sign on system for OAuth 2.0 protocol. Your system can access the platform through OAuth2.0 to achieve single sign on.

Framework

Based on the Go language development, the overall use of the go kit framework, the transport layer uses go restful to handle the HTTP protocol of the transport layer, and uses gogo/protobuf for serialization/deserialization.

How to use?
Build
mkdir -p dist && make ui idas
# The compiled output file is dist/idas
Initialization
dist/idas init
Run
cd dist &&  ./idas --security.secret=GzOWcPU86JWOzTRtEoiX

!!! For security reasons, please change the value of the parameter -- security.secret. Please do not change the value of -- security.secret arbitrarily after initialization, as changing it may cause some encrypted historical data to be unable to be decrypted.

OAuth2
  1. Create an Application (Grant Type: Authorization Code) Create App
  2. Create a key-pair on the App details page Create a Key-Pair Please save the Access Key and Access Secret
  3. Configure services that require OAuth2 authentication (Example: Grafana) img.png
  4. Create users and authorize them.
  5. Use authorized users to log in to the IDAS system to complete authentication

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL