MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / claimsAuthenticWithExtraClaims

Function claimsAuthenticWithExtraClaims

rest/oidc_api_test.go:365–369  ·  view source on GitHub ↗

claimsAuthenticWithUsernameClaim returns an authentic claim set after setting the given secondary claims.

(extra map[string]interface{})

Source from the content-addressed store, hash-verified

363// claimsAuthenticWithUsernameClaim returns an authentic claim set after
364// setting the given secondary claims.
365func claimsAuthenticWithExtraClaims(extra map[string]interface{}) claimSet {
366 claims := claimsAuthentic()
367 claims.secondaryClaims = extra
368 return claims
369}
370
371// claimsAuthenticWithUsernameClaim returns an authentic claim set after
372// setting the given claim key and value as secondary claims.

Calls 1

claimsAuthenticFunction · 0.85

Tested by

no test coverage detected