MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewDefaultAuthActor

Function NewDefaultAuthActor

actor/v7action/auth.go:20–25  ·  view source on GitHub ↗
(config Config, uaaClient UAAClient)

Source from the content-addressed store, hash-verified

18}
19
20func NewDefaultAuthActor(config Config, uaaClient UAAClient) AuthActor {
21 return &defaultAuthActor{
22 config: config,
23 uaaClient: uaaClient,
24 }
25}
26
27func (actor defaultAuthActor) Authenticate(credentials map[string]string, origin string, grantType constant.GrantType) error {
28 if (grantType == constant.GrantTypePassword || grantType == constant.GrantTypeJwtBearer) && actor.config.UAAGrantType() == string(constant.GrantTypeClientCredentials) {

Callers 1

NewActorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected