[KEYCLOAK-4342] - Make adapter state cookie path configurable
This commit is contained in:
parent
5a1dde76e0
commit
a2f3e95a26
3 changed files with 10 additions and 2 deletions
|
@ -213,6 +213,11 @@ token-store::
|
|||
Alternative _cookie_ means storage of info in cookie.
|
||||
See <<_applicationclustering,Application Clustering>> for details
|
||||
|
||||
token-cookie-path::
|
||||
When using a cookie store, this option sets the path of the cookie used to store account info. If it's a relative path,
|
||||
then it is assumed that the application is running in a context root, and is interpreted relative to that context root.
|
||||
If it's an absolute path, then the absolute path is used to set the cookie path. Defaults to use paths relative to the context root.
|
||||
|
||||
principal-attribute::
|
||||
OpenID Connect ID Token attribute to populate the UserPrincipal name with.
|
||||
If token attribute is null, defaults to `sub`.
|
||||
|
|
|
@ -69,7 +69,7 @@ public class LinkUtils {
|
|||
error = "invalid redirect to " + response.getRedirectLocation();
|
||||
}
|
||||
} else if (response.isSuccess() && anchor != null) {
|
||||
if (!(response.getContent().contains("id=\"" + anchor + "\"") || response.getContent().toString().contains("name=\"" + anchor + "\""))) {
|
||||
if (!(response.getContent().contains("id=\"" + anchor + "\"") || response.getContent().contains("name=\"" + anchor + "\"") || response.getContent().contains("href=\"#" + anchor + "\""))) {
|
||||
error = "invalid anchor " + anchor;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -20,4 +20,7 @@ https://keycloak.example.com*
|
|||
https://github.com/keycloak/keycloak-documentation/blob/master/*
|
||||
https://openshift.example.com:8443/console
|
||||
https://github.com/keycloak/keycloak-quickstarts.git
|
||||
https://github.com/go-chi/chi#router-design
|
||||
https://github.com/go-chi/chi#router-design
|
||||
https://accounts.google.com/o/oauth2/revoke
|
||||
https://keycloak.example.com/auth/realms/REALM_NAME/protocol/openid-connect/logout
|
||||
http://127.0.0.1:3000/oauth/callback
|
Loading…
Reference in a new issue