Skip to content

Commit

Permalink
Merge pull request #3 from Tazer/master
Browse files Browse the repository at this point in the history
Returning the internal server so it can be used outside
  • Loading branch information
LyricTian authored Jul 25, 2018
2 parents 2bab9f1 + 934c978 commit 937be23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ var (
)

// InitServer Initialize the service
func InitServer(manager oauth2.Manager) {
func InitServer(manager oauth2.Manager) *server.Server {
if err := manager.CheckInterface(); err != nil {
panic(err)
}
gServer = server.NewDefaultServer(manager)
return gServer
}

// HandleAuthorizeRequest the authorization request handling
Expand Down

0 comments on commit 937be23

Please sign in to comment.