-
Notifications
You must be signed in to change notification settings - Fork 144
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
Upgrade from V1 to V2 - New Authentication-Flow #1490
Comments
You need 2.3 at least and then create an implementation like this: #1407 (comment) It's a bit cumbersome at the moment. There is more discussion going on in #1469, too. |
I'm trying to do this via your implementation and i get the following error the server returned an unexpected status code and no error class is registered for this code 401 {"error":{"code":"InvalidAuthenticationToken","message":"IDX14100: JWT is not well formed, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format.
|
is that coming from your server? then please post a callstack. if that error comes from Microsoft, then I doubt the implementation here is at fault bc it doesn't modify the token 🤔 does the same token work with v1? |
@uncaught i wanted to implement v2 directly
this works for a while, but on the next day when i try to use the same tokens to call graph api like such
i get the following error when calling graphServiceClient https://flareapp.io/share/Lm8KN3A5 |
I am not sure, what you are trying to do there. Access tokens usually don't last very long. Like 30min is common. After that you have to use the refresh token to get a new access token. If you have not already implemented a refresh system, may I suggest you take a step back and let this repo handle it for you, as it was designed to? All you need is to implement the persistence layer then. But that's not what this issue here is about. |
Hi, how was this issue resolved? |
I have an SPA (SinlgePageApplication), which can get an ID and an access token via the msal library. These tokens are included in the header with every request to my API. The API-Gateway routes the request to an microservice that uses the msgraph-sdk-php to communicate with Microsoft.
How can I use my given access token together with version 2.x? Because the microservice is not accessible from outside the kubernetes cluster, i can't redirect the user through the OAuth process.
The text was updated successfully, but these errors were encountered: