Skip to content

Commit 4153b1e

Browse files
authored
Merge pull request #22 from LyricTian/develop
Add glide support
2 parents 321bcc5 + d1fff4d commit 4153b1e

File tree

9 files changed

+71
-16
lines changed

9 files changed

+71
-16
lines changed

README.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
OAuth 2.0
2-
=========
1+
# OAuth 2.0
2+
33
> An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications.
44
55
[![GoDoc](https://godoc.org/gopkg.in/oauth2.v3?status.svg)](https://godoc.org/gopkg.in/oauth2.v3)
66
[![Go Report Card](https://goreportcard.com/badge/gopkg.in/oauth2.v3)](https://goreportcard.com/report/gopkg.in/oauth2.v3)
77
[![Build Status](https://travis-ci.org/go-oauth2/oauth2.svg?branch=master)](https://travis-ci.org/go-oauth2/oauth2)
88

9-
Protocol Flow
10-
-------------
9+
## Protocol Flow
1110

1211
```
1312
+--------+ +---------------+
@@ -29,14 +28,21 @@ Protocol Flow
2928
+--------+ +---------------+
3029
```
3130

32-
33-
Quick Start
34-
-----------
31+
## Quick Start
3532

3633
### Download and install
3734

3835
``` bash
39-
$ go get -u -v gopkg.in/oauth2.v3
36+
$ go get -u gopkg.in/oauth2.v3
37+
```
38+
39+
#### Or use [glide](https://github.com/Masterminds/glide)
40+
41+
``` bash
42+
$ cd $GOPATH/src
43+
$ git clone https://github.com/go-oauth2/oauth2 gopkg.in/oauth2.v3
44+
$ cd gopkg.in/oauth2.v3
45+
$ glide install
4046
```
4147

4248
### Create file `server.go`
@@ -94,8 +100,7 @@ $ ./server
94100
http://localhost:9096/authorize?response_type=code&client_id=1&redirect_uri=http%253A%252F%252Flocalhost&scope=all&state=xyz
95101
```
96102

97-
Features
98-
--------
103+
## Features
99104

100105
* Easy to use
101106
* Based on the [RFC 6749](https://tools.ietf.org/html/rfc6749) implementation
@@ -104,21 +109,19 @@ Features
104109
* Support custom scope
105110
* Support custom expiration time of the access token
106111

107-
Example
108-
-------
112+
## Example
113+
109114
> A complete example of simulation authorization code model
110115
111116
Simulation examples of authorization code model, please check [example](/example)
112117

113-
Storage implements
114-
------------------
118+
## Storage implements
115119

116120
* [BuntDB](https://github.com/tidwall/buntdb)(The default storage)
117121
* [Redis](https://github.com/go-oauth2/redis)
118122
* [MongoDB](https://github.com/go-oauth2/mongo)
119123

120-
License
121-
-------
124+
## License
122125

123126
```
124127
Copyright (c) 2016, OAuth 2.0

glide.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package: gopkg.in/oauth2.v3
2+
import:
3+
- package: github.com/codegangsta/inject
4+
version: v1.0-rc1
5+
- package: github.com/satori/go.uuid
6+
version: v1.1.0
7+
- package: github.com/tidwall/buntdb
8+
- package: gopkg.in/session.v1
9+
version: v1.0.1
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/satori/go.uuid

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tidwall/btree

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tidwall/buntdb

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tidwall/rtree

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/session.v1

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)