auth

Paddy 2015-01-18 Parent:e000b1c24fc0 Child:dcd2125c4f57

124:d14f0a81498c Go to Latest

auth/token_test.go

Fill out token.CreatedFrom. Add a GrantType.AuditString() string method that will return a string for an audit log. Basically, it returns enough information to identify how the token got created. For client credentials, that's just the string "client_credentials". For user credentials, that's just the string "credentials". For auth codes, that's "authcode:", followed by the code used. For refresh tokens, that's "refresh_token:", followed by the refresh token used.

History