Hi @Joe Green,
According to your description, I want to confirm whether you are referring to this official example: https://github.com/microsoftgraph/msgraph-training-aspnetmvcapp/tree/main/Demos/03-add-msgraph/graph-tutorial
If this is the case, as we tested, this demo works normally, and the userDetails
has been correctly obtained in BaseController
and stored in ViewBag
. This is test result:
This is the corresponding logic code ( In method onActionExcuting
):
So I'm not sure at which step you have the problem. If possible, please provide more details.
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.