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.
go get -u github.com/ProtocolONE/authone-jwt-verifier-golang
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.