You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've been going round in circles for several days and I can't find a way out. I'm not sure I've got the right direction yet.
I've come to ask you for advice and to help me with my code if that's what I'm looking for.
I develop in PHP using the msgraph-sdk-php SDK.
I'm developing a web application and I'd like to send tasks to To Do.
I'm working on the principle that the user will have to validate their consent the 1st time, and then the aim would be to stop asking them.
I would have recovered information such as token and token_refresh to redo actions the next time (stored in the database), at least that's what I think.
To create a task in To Do, I need to perform 2 actions for the user who has validated their consent:
Read the task lists, and retrieve the task Id[0].
Send the task and the information to this task[0]->id
I therefore turned to the ‘OnBehalfOfContext’ method with the idea of making several requests with tokens in the database for the user.
Expected behavior
Is it normal for my token not to be JWT?
Why doesn't it work?
I have continued my investigations, and I have just understood something.
When I choose a user account for the consent that is part of my domain, it works, I have a valid token (JWT).
When I choose a personal or external MS account, I get an invalid token.
I've seen this message on the configuration screen in the Entra admin of my application on properties.
I am currently on a PHP local test development, to have access to external or personal accounts, do I have to have my MS Entra application validated?
Could this be the problem?
How can I do this, as these are just tests?
Can't I authorize specific e-mails to be added for testing purposes, before having to validate the application? This is done on the Google API side.
I'm waiting for your feedback, if it would help me make a little progress on the subject.
Thanks
Describe the bug
Hi,
I've been going round in circles for several days and I can't find a way out. I'm not sure I've got the right direction yet.
I've come to ask you for advice and to help me with my code if that's what I'm looking for.
I develop in PHP using the msgraph-sdk-php SDK.
I'm developing a web application and I'd like to send tasks to To Do.
I'm working on the principle that the user will have to validate their consent the 1st time, and then the aim would be to stop asking them.
I would have recovered information such as token and token_refresh to redo actions the next time (stored in the database), at least that's what I think.
To create a task in To Do, I need to perform 2 actions for the user who has validated their consent:
I therefore turned to the ‘OnBehalfOfContext’ method with the idea of making several requests with tokens in the database for the user.
Expected behavior
Is it normal for my token not to be JWT?
Why doesn't it work?
How to reproduce
Test code extract (all in one)
test-event.php
SDK Version
2.17.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: