auth

Paddy 2015-03-03 Parent:d103a598548c Child:3aeadd2201e9

135:d30a3a12d387 Go to Latest

auth/context.go

Attach our Scope type to AuthCodes and Tokens. When obtaining an AuthorizationCode or Token, attach a slice of strings, each one a Scope ID, instead of just attaching the encoded string the user passes in. This will allow us to change our Scope encoding down the line, and is more conceptually faithful. Also, if an authorization request is made with an invalid scope, return the invalid_scope error.

History