Skip to content

Commit 7a08792

Browse files
committed
change the open source licenses for MIT
1 parent 72bcf52 commit 7a08792

File tree

3 files changed

+37
-34
lines changed

3 files changed

+37
-34
lines changed

LICENSE

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
Copyright (c) 2016, OAuth 2.0
2-
All rights reserved.
1+
MIT License
32

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
3+
Copyright (c) 2016 Lyric
64

7-
* Redistributions of source code must retain the above copyright notice, this
8-
list of conditions and the following disclaimer.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
911

10-
* Redistributions in binary form must reproduce the above copyright notice,
11-
this list of conditions and the following disclaimer in the documentation
12-
and/or other materials provided with the distribution.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1314

14-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
Redis Storage for OAuth2
2-
========================
1+
# Redis Storage for OAuth 2.0
32

4-
[![GoDoc](https://godoc.org/github.com/go-oauth2/redis?status.svg)](https://godoc.org/github.com/go-oauth2/redis)
5-
[![Go Report Card](https://goreportcard.com/badge/github.com/go-oauth2/redis)](https://goreportcard.com/report/github.com/go-oauth2/redis)
3+
> Based on the redis token storage
64
7-
Install
8-
-------
5+
[![License][License-Image]][License-Url]
6+
[![ReportCard][ReportCard-Image]][ReportCard-Url]
7+
[![GoDoc][GoDoc-Image]][GoDoc-Url]
8+
9+
## Install
910

1011
``` bash
11-
$ go get -u -v github.com/go-oauth2/redis
12+
$ go get -u github.com/go-oauth2/redis
1213
```
1314

14-
Usage
15-
-----
15+
## Usage
1616

1717
``` go
1818
package main
@@ -33,10 +33,15 @@ func main() {
3333
}
3434
```
3535

36-
License
37-
-------
36+
## MIT License
3837

3938
```
40-
Copyright (c) 2016, OAuth 2.0
41-
All rights reserved.
42-
```
39+
Copyright (c) 2016 Lyric
40+
```
41+
42+
[License-Url]: http://opensource.org/licenses/MIT
43+
[License-Image]: https://img.shields.io/npm/l/express.svg
44+
[ReportCard-Url]: https://goreportcard.com/report/github.com/go-oauth2/redis
45+
[ReportCard-Image]: https://goreportcard.com/badge/github.com/go-oauth2/redis
46+
[GoDoc-Url]: https://godoc.org/github.com/go-oauth2/redis
47+
[GoDoc-Image]: https://godoc.org/github.com/go-oauth2/redis?status.svg

token_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
func TestTokenStore(t *testing.T) {
1414
Convey("Test redis token store", t, func() {
1515
cfg := &redis.Config{
16-
Addr: "192.168.33.70:6379",
16+
Addr: "127.0.0.1:6379",
1717
}
1818
store, err := redis.NewTokenStore(cfg)
1919
So(err, ShouldBeNil)

0 commit comments

Comments
 (0)