Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(baseUrl, prefix string, sessionHolder mbase.SessionHolder, callbacks base.Callbacks, provs ...func(baseUrl string) providers.Provider) (*web.Mux, *views.Views)
Build a mux to handle the endpoints required for oauth.
baseUrl - the full URL to the point where the oauth views are added, including trailing / prefix - path prefix for the oauth views without trailing / sessionHolder - the session store used with th tt_goji_middleware session middleware callbacks - callbacks from tt_goji_oauth to application code providers - providers to include in the store.
For example "http://localhost:7778/login/oauth/", "/login/oauth". As you can tell we only have two parameters because I've been too lazy to parse the url
This function assumes that the session middleware from [tt_goji_middleware](https://github.com/philpearl/tt_goji_middleware) is in the stack.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package base contains interface and struct definitions used by the rest of the code.
|
Package base contains interface and struct definitions used by the rest of the code. |
Package providers contains definitions for OAUTH services.
|
Package providers contains definitions for OAUTH services. |
View functions for OAUTH
|
View functions for OAUTH |
Click to show internal directories.
Click to hide internal directories.