-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT-Authentication doesnt work anymore since SDK 3.0.0 #28
Comments
NOTE: We need to wait for the response of webex.initialize API. After getting the response we need to decide whether we are already logged in or we need to authorize the user. |
I used it like in this example: I also tried it with the KitchenSink Sample App by just pasting a JWT which worked in previous versions and got the same error like mentioned before. |
How you generated the JWT token? |
With the package io.jsonwebtoken for Android. Also created a JWT Token manually on https://jwt.io/ and it also does not work |
Found this in the logs:
The JWT-Token i used was working fine in SDK Version 2.8.0. Is there something that got changed where the JWT gets Validated/Parsed? |
Does your payload looks like below example?
|
I adjusted my payload and in the sample app the token works now but when using the sdk in my java based android application i get an unexpected error -7000 at webex.initialize. After that the app always crashes when initiating a call: |
You can not use the Webex APIs until authorised successful (cached or fresh login): |
When trying to authorize, even if the initialization-Method throws an error, i get the following error in the logs: The same token works in the sample app but not when using the sdk in my java android application |
@jbenyovs - request you to please help setup a call with @fhartmann-erp for us to do a screen share |
@adamrangs I have setup a Webex space with you and @fhartmann-erp to discuss the details of a call. |
I think i've got it to work, i copied the permissions in the AndroidManifest.xml from the Example App in my App and then the authentication works and i could make a call. Is there any new permissions the WebexSDK needs in the newer version? |
Good to hear that it works for you.
|
Seems like the Internet-Permission was missing, didnt need that for the SDK Version 2.8.0. |
I am facing same issue while authenticating JWT token, and error message logged below.
Error messages debugging is |
Since SDK 3.0.0 you have to set the expiration of the JWT. In the previous version it worked without setting the expiration. |
When using the same JWT which works with SDK-Version 2.8.0 i always get the error: "JWT Login Failed". When debugging the Error of the jwtAuthenticator.authorize method says error code -7000 "UNEXPECTED_ERROR".
The text was updated successfully, but these errors were encountered: