Does MS OAuth 2.0 authorization require php SESSiON activation?

Wojciech Sobiesiak 96 Reputation points
2023-08-23T08:25:59.3566667+00:00

Hello.

I have prepared "custom OAuth 2.0 client-side implementation with persistent storage." solution

When I use file storage to send Access Token have error message

"Email sending failed with status code: 401 Response: {"error":{"code":"InvalidMsaTicket","message":"ErrorCode: 'PP_E_RPS_CERT_NOT_FOUND'. Message: ' Internal error: spRPSTicket->ProcessToken failed. Failed to call CRPSDataCryptImpl::UnpackData: Internal error: Failed to decrypt data. :Failed to get session key. RecipientId=292841. spCache->GetCacheItem returns error.:Cert Name: (null). SKI: b219e529469cc90e1028ea9c506474d1e18b767c...'","innerError":{"oAuthEventOperationId":"4dbf8f11-1945-472f-857f-218a30843e72","oAuthEventcV":"miDhDQiCNT9Q1qdC7xk0Kw.1","errorUrl":"https://aka.ms/autherrors#error-InvalidMsaTicket","requestId":"0de1209a-8208-3f35-50d6-a742ef19342b","date":"2023-08-23T07:09:53"}}}"

checked 2 tokens (sent through a session variable and through a file) and they are exactly the same.

So does MS OAuth 2.0 authorization require php SESSiON activation?

And if , how information about session is sent to Microsoft server. What information is gathered?

Addition:

Please translate it for better understanding.

https://4programmers.net/Forum/Oceny_i_recenzje/369464-instalator_aplikacji_korzystajacych_z_autoryzacji_oauth20?p=1923160#id1923160

https://www.youtube.com/watch?v=W6HyK_qeoHs

https://infinityhost.ct8.pl/installers/oauth2_ms_installer.7z

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,349 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,548 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.