I used the Generic provider for OAuth to Microsoft Graph API whereby the Authorization URL and Token URL need to be set to the specific Azure/Entra Tenant ID endpoint of the environment the app exists in, rather than the standard login.microsoftonline.com endpoint.
This works fine, but as soon as the values are set as environment variables, when authenticating with the connect button, the URL becomes:
I have worked around this by using an extended class and overriding $urlAuthorize and $urlAccessToken in the class. However I'll leave this open, as I believe the environment variable has not been parsed.
Describe the bug
I used the Generic provider for OAuth to Microsoft Graph API whereby the Authorization URL and Token URL need to be set to the specific Azure/Entra Tenant ID endpoint of the environment the app exists in, rather than the standard login.microsoftonline.com endpoint.
This works fine, but as soon as the values are set as environment variables, when authenticating with the connect button, the URL becomes:
The appearance of
$SHAREPOINT_OAUTH_AUTH_URL
suggests the environment variable wasn't parsed.Putting the values directly, allows the Generic client to be authenticated.
Steps to reproduce
Craft CMS version
5.2.5
Plugin version
2.0.0
Multi-site?
No
Additional context
No response