forked from remote/oauth2
Removing unnecessary option getters.
This commit is contained in:
5
jwt.go
5
jwt.go
@@ -59,11 +59,6 @@ type JWTConfig struct {
|
|||||||
cache Cache
|
cache Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
// Options returns JWT options.
|
|
||||||
func (c *JWTConfig) Options() *JWTOptions {
|
|
||||||
return c.opts
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewTransport creates a transport that is authorize with the
|
// NewTransport creates a transport that is authorize with the
|
||||||
// parent JWT configuration.
|
// parent JWT configuration.
|
||||||
func (c *JWTConfig) NewTransport() Transport {
|
func (c *JWTConfig) NewTransport() Transport {
|
||||||
|
|||||||
@@ -134,11 +134,6 @@ type Config struct {
|
|||||||
cache Cache
|
cache Cache
|
||||||
}
|
}
|
||||||
|
|
||||||
// Options returns options.
|
|
||||||
func (c *Config) Options() *Options {
|
|
||||||
return c.opts
|
|
||||||
}
|
|
||||||
|
|
||||||
// AuthCodeURL returns a URL to OAuth 2.0 provider's consent page
|
// AuthCodeURL returns a URL to OAuth 2.0 provider's consent page
|
||||||
// that asks for permissions for the required scopes explicitly.
|
// that asks for permissions for the required scopes explicitly.
|
||||||
func (c *Config) AuthCodeURL(state string) (authURL string, err error) {
|
func (c *Config) AuthCodeURL(state string) (authURL string, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user