Skip to content

Commit

Permalink
add functional option for cert invalidation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Theel committed Jul 24, 2020
1 parent ea491e1 commit 93765e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ func SetOpenIDConnectEndpoint(url string) func(client *gocloak) {
}
}

// SetCertCacheInvalidationTime sets the logout
func SetCertCacheInvalidationTime(duration time.Duration) func(client *gocloak) {
return func(client *gocloak) {
client.Config.CertsInvalidateTime = duration
}
}

func (client *gocloak) GetServerInfo(ctx context.Context, accessToken string) (*ServerInfoRepesentation, error) {
errMessage := "could not get server info"
var result ServerInfoRepesentation
Expand Down

0 comments on commit 93765e7

Please sign in to comment.