Merge pull request #3 from Tazer/master
Returning the internal server so it can be used outside
This commit is contained in:
commit
937be23639
@ -13,11 +13,12 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// InitServer Initialize the service
|
// InitServer Initialize the service
|
||||||
func InitServer(manager oauth2.Manager) {
|
func InitServer(manager oauth2.Manager) *server.Server {
|
||||||
if err := manager.CheckInterface(); err != nil {
|
if err := manager.CheckInterface(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
gServer = server.NewDefaultServer(manager)
|
gServer = server.NewDefaultServer(manager)
|
||||||
|
return gServer
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleAuthorizeRequest the authorization request handling
|
// HandleAuthorizeRequest the authorization request handling
|
||||||
|
Loading…
Reference in New Issue
Block a user