You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the following example, I assume that the OA4MP WAR is oauth2.war which is deployed in Tomcat to https://SERVER/oauth2/.... I don't know enough about the SciTokens server to say if this example applies or not.
The RewriteValve must be added to the Tomcat configuration. I do this in the main server.xml file in the <Host> block. For example:
A new file rewrite.config must be placed in the Host configuration folder. In this example, since the Host name is "localhost", the rewrite.config file would be in the $CATALINA_HOME/conf/Catalina/localhost/ directory. To get the missing rewrite behavior, add the following line to that file.
(EDIT: I changed the second RewriteRule to use a negative lookahead without the RewriteCond %{REQUEST_URI} !^/oauth2/ condition. In my testing I discovered that Tomcat was ignoring this negated condition, but a negative lookahead within the RewriteRule works just fine.)
Currently the lightweight issuer responds at
but not
even though the latter is preferred according to https://datatracker.ietf.org/doc/html/rfc8414#section-5 .
@terrencegf knows the Tomcat configuration magic to add a rewrite rule for the latter URLs.
The text was updated successfully, but these errors were encountered: