In SiteMinder 12.8 SP8, I configured OAuth Provider to follow the documentation: Use SiteMinder as an OAuth Provider.
Accessing the well-known endpoint resulted in HTTP 500 error.
My Provider Metadata Endpoint:
https://<SPSServerName>.example.com:<Port#>/affwebservices/CASSO/OAuth2/<AuthorizationServeName>/.well-known/oauth-authorization-server
SiteMinder 12.8 SP08 (12.8.08)
Access Gateway log:
... [CSmHttpPlugin.cpp:859][ERROR][sm-HTTPAgent-00100] URL contains invalid characters. Exiting with HTTP 500 server error '00-0002'.
... [CSmResourceManager.cpp:151][WARNING][sm-AgentFramework-00480] HLA: Missing resource data.
The trace log:
... [CSmHttpPlugin::ValidUrlString][URL contains BadUrlChars: '/affwebservices/CASSO/OAuth2/<AuthorizationServeName>/.well-known/oauth-authorization-server'.]
In this case, BadUrlChars was set by default as follows:
//,./,/.,/*,*.,~,\,%00-%1f,%7f
The character sequence of '/.' blocked the access.
Remove the '/.' pattern in the BadUrlChars parameter of the Agent Configuration Object.
Example of updating BadUrlChars (default value of SPSDefaultSettings):
//,./,/.,/*,*.,~,\,%00-%1f,%7f
//,./,/*,*.,~,\,%00-%1f,%7f
This is noted as Prerequisites in the documentation Discovery Profile of Provider Metadata.