keratin / authn-go

Go client library for Keratin AuthN
https://github.com/keratin/authn-server
GNU Lesser General Public License v3.0
32 stars 10 forks source link

Add ClaimsFrom and ClaimsFromWithAudience #18

Closed jeffreylo closed 3 years ago

jeffreylo commented 3 years ago

This patch adds two methods to the authn-go client: ClaimsFrom and its derivative, ClaimsFromWithAudience. These methods return the verified claims for the given ID token, if and only if the token is a valid JWT passing all verification requirements.

Closes https://github.com/keratin/authn-go/issues/17.