You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "shnuwl007 (via GitHub)" <gi...@apache.org> on 2023/07/05 11:21:44 UTC

[GitHub] [shenyu] shnuwl007 commented on issue #4666: Questions about the JWT plugin

shnuwl007 commented on issue #4666:
URL: https://github.com/apache/shenyu/issues/4666#issuecomment-1621558977

   > > yes, jwt plugin can do this, jwt plugin has a convert field, so you can config this field, and the field can transfer jwt body to exchange header. jwt plugin converter coonfig like this:
   > > ```json
   > > {"convert": [{"jwtVal": "userId", "headerVal": "currentUserId"}]}
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > if you want to implement this converter, pls see: https://shenyu.apache.org/zh/docs/developer/custom-jwt-covert-algorithm
   > 
   > @mxyyyy I think you can run admin and bootstrap and example-http with jwt plugin
   
   I think the config should like this: {"converter": [{"jwtVal": "sub", "headerVal": "user-id"}]}, because JwtRuleHandleTest.java in the project are written like this


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

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