An open API service indexing awesome lists of open source software.

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

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
```