Function
NewDefaultAuthActor
(config Config, uaaClient UAAClient)
Source from the content-addressed store, hash-verified
| 18 | } |
| 19 | |
| 20 | func NewDefaultAuthActor(config Config, uaaClient UAAClient) AuthActor { |
| 21 | return &defaultAuthActor{ |
| 22 | config: config, |
| 23 | uaaClient: uaaClient, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (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) { |
Tested by
no test coverage detected