Hello Matthew Marron,
Thank you for reaching out to Microsoft Support!
Outlook applications do not need to be active when you need to programmatically read emails from shared mailboxes using the Graph API, and application registered in Azure AD need to grant delegated permissions that you have already granted. However, it is important to note that Mail.Read.Shared permissions are only valid for work or school accounts.
Then you get Authentication failed when you get the token with the username and password, it is recommended that you use the SDK to get the access token, see the documentation for details and also provide code examples.
Get the Graph API endpoint for shared mailbox messages:
https://learn.microsoft.com/en-us/graph/outlook-share-messages-folders
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.