# README
AuthOne JWT verifier for Go
Overview
This component contains helper methods for working with authentication in ProtocolOne projects. Also, based on these methods, middleware is implemented to verify authentication in the Echo framework.
Installation
go get -u github.com/ProtocolONE/authone-jwt-verifier-golang
Usage
The complete example of usage can be found in the demo application located in the example directory. This library was built to simplify authorization process and converting opaque oauth2 access tokens to Jwt tokens and manage they lifecycle. To get it running at its most basic form, all you need to provide is the the following information:
- Client ID - The unique ID of application in the AuthOne Developer Console.
- RedirectURL - The authorization server will redirect the user back to the application with either an authorization code or access token in the URL.
- Issuer - the AuthOne authorization server to manage introspection, authorization, revoke and get user info operations.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewJwtVerifier create new instance of verifier with given configuration.
# Structs
AuthUrlOption contains an additional option for authentication form URL.
Config describes a typical 3-legged OpenId Connect flow, with both the client application information and the server's endpoint URLs.
IdToken based at JWT claims.
IntrospectToken repeats the structure of the Introspect Token object described in the Hydra documentation.
JwtVerifier used to interact with AuthOne authorization server.
RetrieveError defined the structure of the error response to the oauth server.
Token defined structure of oauth2.Token.
UserInfo based at JWT claims.