Closed MrSuttonmann closed 7 months ago
The issue was due to blank environment variables.
what is meaning of blank nvironment variables? I try The Microsoft oauth2.0 recently, i Compare The part Which is Microsoft of the documentation. the blank nvironment variables is meaing that we not set the metadata authorization_endpoint ?
what is meaning of blank nvironment variables?
@abirvepete , it is likely the environment variables were not set.
Describe the issue
I’ve followed the documentation for setting up an Azure OAuth2 IdP. When I run my pipeline to validate the Caddyfile, I get the following error:
Error: loading http app module: provision http: server srv0: setting up route handlers: route 0: loading handler modules: position 0: loading module 'subroute': provision http.handlers.subroute: setting up subroutes: route 1: loading handler modules: position 0: loading module 'subroute': provision http.handlers.subroute: setting up subroutes: route 1: loading handler modules: position 1: loading module 'authentication': provision http.handlers.authentication: loading authentication providers: module name 'authorizer': provision http.authentication.providers.authorizer: loading security app module: provision security: server initialization failed: failed configuring identity provider: failed to fetch metadata for OAuth 2.0 authorization server: metadata authorization_endpoint field not found for provider azure
Configuration
Paste full
Caddyfile
below:Removed
Version Information
Provide output of
caddy list-modules -versions | grep git
below:Expected behavior
I expect the configuration to work!
Additional context
Add any other context about the problem here.