Hello Everyone,
-
Please guide me with JWT authentication, as i am getting authentication failed error with below code/parameter. and i am doing the given change in below env file.
-
Please suggest me in another case i am using a parameter (as moderator) with JWT, when this parameter is true i want user join the meeting directly and if it is false display waiting screen till the meeting owner admit the user.
---------------------------------- Code Start : ---------------------------------------------------
JWT Token :- eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb250ZXh0Ijp7InVzZXIiOnsiYXZhdGFyIjoiaHR0cDovLzEyNy4wLjAuMS9hc3NldHMvbWVkaWEvdXNlcnMvbm9waWMuanBnIiwibmFtZSI6IlRFU1QgU2h5YW0iLCJlbWFpbCI6IlFYUEFGRTRNS09RNVVSUldUUU5XMUBleGFtcGxlLmNvbSIsImlkIjoiUVhQQUZFNE1LT1E1VVJSV1RRTlcxIn0sImdyb3VwIjoiZW1iZWRncm91cCJ9LCJhdWQiOiJFMUI0MCIsImlzcyI6IkUxQjQwIiwic3ViIjoiKiIsInJvb20iOiIqIiwibW9kZXJhdG9yIjp0cnVlLCJpYXQiOjE2NDI1MTAzOTN9.gCAG8CE3xGqmdFXDEQeP_jarWWtwCKC3lQGXfLnJJwM
JWT Algorithm :- {
“alg”: “HS256”,
“typ”: “JWT”
}
JWT payload data :-
{
“context”: {
"user": {
"name": "TEST Shyam",
"email": "QXPAFE4MKOQ5URRWTQNW1@example.com",
"id": "QXPAFE4MKOQ5URRWTQNW1"
},
"group": "embedgroup"
},
“aud”: “E1B40”,
“iss”: “E1B40”,
“sub”: “*”,
“room”: “*”,
“moderator”: true,
“iat”: 1642510393
}
ENV FILE Code:-
---------------------- ENV File ---------------------- --------------------------------------
Enable authentication
ENABLE_AUTH=1
Enable guest access
#ENABLE_GUESTS=1
Select authentication type: internal, jwt or ldap
AUTH_TYPE=jwt
JWT authentication
Application identifier
JWT_APP_ID=E1B40
Application secret known only to your token generator
JWT_APP_SECRET=21D40CD42CCA9BE6B8932855781FC840
(Optional) Set asap_accepted_issuers as a comma separated list
#JWT_ACCEPTED_ISSUERS=my_web_client,my_app_client
(Optional) Set asap_accepted_audiences as a comma separated list
#JWT_ACCEPTED_AUDIENCES=my_server1,my_server2
JWT_ALLOW_EMPTY=0
JWT_TOKEN_AUTH_MODULE=token_verification
------------------------------ ENV File End ----------------------------------------
----------------------------------Code END ---------------------------------------------------------