wso2jwt

Validating JWT tokens with BYU's implementation of WSO2 isn't the easiest thing on the planet. We wanted to make sure that we protected every route with a JWT check and, as part of that check, pull in the latest signing key.
Installation
go get github.com/byuoitav/wso2jwt
Example Usage
import "github.com/byuoitav/wso2jwt"
func main() {
router := echo.New()
router.Use(echo.WrapMiddleware(wso2jwt.ValidateJWT))
router.Start()
}
Local Development
The WSO2 JWT checking "pipeline" will not work from your local box. To enable local development without headaches, be sure to set the LOCAL_ENVIRONMENT variable in you shell environment.
Example (using /etc/environment):
export LOCAL_ENVIRONMENT="true"