parent
815ced424c
commit
7e5798569b
4 changed files with 64 additions and 14 deletions
|
@ -45,6 +45,16 @@ type Client interface {
|
|||
ClockSkew() time.Duration
|
||||
}
|
||||
|
||||
// HasRedirectGlobs is an optional interface that can be implemented by implementors of
|
||||
// Client. See https://pkg.go.dev/path#Match for glob
|
||||
// interpretation. Redirect URIs that match either the non-glob version or the
|
||||
// glob version will be accepted. Glob URIs are only partially supported for native
|
||||
// clients: "http://" is not allowed except for loopback or in dev mode.
|
||||
type HasRedirectGlobs interface {
|
||||
RedirectURIGlobs() []string
|
||||
PostLogoutRedirectURIGlobs() []string
|
||||
}
|
||||
|
||||
func ContainsResponseType(types []oidc.ResponseType, responseType oidc.ResponseType) bool {
|
||||
for _, t := range types {
|
||||
if t == responseType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue