auth

Paddy 2014-12-07 Parent:e45bfa2abc00 Child:a8b86f5fba78

85:1dc4e152e3b0 Go to Latest

auth/token_test.go

Break client verification out, break token returns out. Break client verification out into a helper function to avoid rewriting it for pretty much every grant. Break token returns out into a new function as part of the GrantType, so that implicit grants can redirect with the token value. Split returning the token as JSON into its own exported function, which can be used in multiple grants. Return more relevant information to the template when a user is deciding whether or not to authorize a grant.

History