Commit 3ff30016 authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Merge branch 'Roshanp-BugFixRouterbuilder' into 'devbranch'

router builder bug fix

See merge request !57
parents 42c0bf37 d0bd6b36
Branches
Tags
1 merge request!57router builder bug fix
Showing with 1 addition and 1 deletion
......@@ -165,7 +165,7 @@ func RoleBasedHandler(c *gin.Context) {
func extractPricipalObject(c *gin.Context) (servicebuildermdl.Principal, error) {
principal := servicebuildermdl.Principal{}
if jwtmdl.GlobalJWTKey == "" {
return principal, nil
return principal, errormdl.Wrap("No Global JWT key found")
}
claim, decodeError := jwtmdl.DecodeToken(c.Request)
if errormdl.CheckErr(decodeError) != nil {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment