Teams integration: credentials error

Created on 9 January 2023, almost 2 years ago
Updated 25 August 2023, about 1 year ago

Problem/Motivation

When I use Teams integration to send messages, I get 2 errors:

If the user is newly created:
Microsoft\Graph\Exception\GraphException: No access token has been provided. en Microsoft\Graph\Http\GraphRequest->__construct() (linea 136 de /var/www/html/vendor/microsoft/microsoft-graph/src/Http/GraphRequest.php).

If the user already exist when login:
Client error: `GET https://graph.microsoft.com/v1.0/me/people/?$search=a&$select=displayName,personType,userPrincipalName&$top=20&$filter=personType/class%20eq%20'Person'%20and%20personType/subclass%20eq%20'OrganizationUser'` resulted in a `403 Forbidden` response: {"error":@"code":"ErrorAccessDenied","message":"Access is denied. Check credentials and try again."}

Steps to reproduce

Install Office 365 connector and submodules SSO and Teams integration.
Login with Microsoft Office credentials.
Try to send a message on /user/ms-teams.
If the user account dont exist on Drupal and it is created when login I get the first error.
If I log in again with the same user that was already created, I get the second error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇪🇸Spain jorgero Sevilla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024