Authentication with OAuth2 and generating custom JWT Token

Hi everyone!

Is it possible to generate custom authentication token when authenticating via OAuth protocol?

I tried to implement custom settings.adminAuth.authenticate() function, as suggested in this topic , but it doesn't seem to work with settings.adminAuth.type = 'strategy'.

What i am trying to achieve is to use multiple Node-Red instances behind Nginx Load Balancer.
So generating JWT Token after OAuth2 Authentication and later checking it with settings.adminAuth.tokens would have been an acceptable solution.

I understand that this setup won't let me use all Node-Red Admin UI features (deploy, debug panel, etc) , but this is fine, because i have separate dev instance , and then flows.json is deployed across this self-made 'cluster', so here UI is used mainly for informational purposes.

Thanks in advance!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.