https://github.com/nilorg/oauth2-server
Go OAuth2 Web Server
https://github.com/nilorg/oauth2-server
Last synced: about 1 year ago
JSON representation
Go OAuth2 Web Server
- Host: GitHub
- URL: https://github.com/nilorg/oauth2-server
- Owner: nilorg
- License: mit
- Created: 2019-08-25T14:18:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T09:53:45.000Z (over 6 years ago)
- Last Synced: 2025-02-02T21:30:18.823Z (over 1 year ago)
- Language: Go
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oauth2-server
Go OAuth2 Web Server
# OAuth2 Library
[OAuth2](https://github.com/nilorg/oauth2)
# 授权码模式(authorization code)
```bash
http://localhost:8080/oauth2/authorize?client_id=oauth2_client&redirect_uri=http://localhost/callback&response_type=code&state=somestate&scope=read_write
```
# 简化模式(implicit grant type)
```bash
http://localhost:8080/oauth2/authorize?client_id=oauth2_client&redirect_uri=http://localhost/callback&response_type=token&state=somestate&scope=read_write
```