22 lines
410 B
Go
22 lines
410 B
Go
package config
|
|
|
|
import "net/url"
|
|
|
|
func (c *Config) OidcIssuerUrl() *url.URL {
|
|
if c.Options().OidcIssuer == "" {
|
|
return nil
|
|
}
|
|
res, err := url.Parse(c.Options().OidcIssuer)
|
|
if err != nil {
|
|
panic("oidc: malformed issuer url")
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (c *Config) OidcClientId() string {
|
|
return c.Options().OidcClientID
|
|
}
|
|
|
|
func (c *Config) OidcClientSecret() string {
|
|
return c.Options().OidcClientSecret
|
|
}
|