You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/10 11:25:34 UTC

[GitHub] [apisix-dashboard] nic-chen commented on a change in pull request #768: fix: used dashboard add consumer of jwt, would have an error when get the jwt token

nic-chen commented on a change in pull request #768:
URL: https://github.com/apache/apisix-dashboard/pull/768#discussion_r520489582



##########
File path: api/internal/handler/consumer/consumer.go
##########
@@ -105,6 +105,13 @@ func (h *Handler) Create(c droplet.Context) (interface{}, error) {
 	}
 	input.ID = input.Username
 
+	if _, ok := input.Plugins["jwt-auth"]; ok {
+		jwt := input.Plugins["jwt-auth"].(map[string]interface{})
+		jwt["exp"] = 86400

Review comment:
       Because there is a problem with the default value setting of the current jsonschema, a temporary solution
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org