feat: add clock skew and option to put userinfo (profile, email, phone, address) into id_token

This commit is contained in:
Livio Amstutz 2020-11-26 15:41:53 +01:00 committed by Unknown
parent 13b14734b9
commit 24120554e5
6 changed files with 61 additions and 13 deletions

View file

@ -37,6 +37,8 @@ type Client interface {
RestrictAdditionalIdTokenScopes() func(scopes []string) []string
RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
IsScopeAllowed(scope string) bool
UserInfoInIDToken() bool
ClockSkew() time.Duration
}
func ContainsResponseType(types []oidc.ResponseType, responseType oidc.ResponseType) bool {