Merge pull request #2275 from stianst/KEYCLOAK-2511
KEYCLOAK-2511 Rename session-state in access token response to sessio…
This commit is contained in:
commit
ca81f3f18d
5 files changed
+11
-4
No files matched your search
@@ -52,7 +52,7 @@ public class AccessTokenResponse {
|
|||||||
@JsonProperty("not-before-policy")
|
@JsonProperty("not-before-policy")
|
||||||
protected int notBeforePolicy;
|
protected int notBeforePolicy;
|
||||||
|
|
||||||
@JsonProperty("session-state")
|
@JsonProperty("session_state")
|
||||||
protected String sessionState;
|
protected String sessionState;
|
||||||
|
|
||||||
protected Map<String, Object> otherClaims = new HashMap<String, Object>();
|
protected Map<String, Object> otherClaims = new HashMap<String, Object>();
|
||||||
|
|||||||
@@ -121,6 +121,13 @@
|
|||||||
The Client Registration service endpoints have been moved from <literal>{realm}/clients</literal> to <literal>{realm}/clients-registrations</literal>.
|
The Client Registration service endpoints have been moved from <literal>{realm}/clients</literal> to <literal>{realm}/clients-registrations</literal>.
|
||||||
</para>
|
</para>
|
||||||
</simplesect>
|
</simplesect>
|
||||||
|
<simplesect>
|
||||||
|
<title>Session state parameter in authentication response renamed</title>
|
||||||
|
<para>
|
||||||
|
In the OpenID Connect authentication response we used to return the session state as <literal>session-state</literal> this is not
|
||||||
|
correct according to the specification and has been renamed to <literal>session_state</literal>.
|
||||||
|
</para>
|
||||||
|
</simplesect>
|
||||||
<simplesect>
|
<simplesect>
|
||||||
<title>Deprecated OpenID Connect endpoints</title>
|
<title>Deprecated OpenID Connect endpoints</title>
|
||||||
<para>
|
<para>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ Pragma: no-cache
|
|||||||
"expires_in":3600,
|
"expires_in":3600,
|
||||||
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
||||||
"id_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
"id_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
||||||
"session-state":"234234-234234-234234"
|
"session_state":"234234-234234-234234"
|
||||||
}]]>
|
}]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ Pragma: no-cache
|
|||||||
"refresh_expires_in":600,
|
"refresh_expires_in":600,
|
||||||
"id_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
"id_token":"tGzv3JOkF0XG5Qx2TlKWIA",
|
||||||
"not-before-policy":0,
|
"not-before-policy":0,
|
||||||
"session-state":"234234-234234-234234"
|
"session_state":"234234-234234-234234"
|
||||||
}]]>
|
}]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ public class OIDCLoginProtocol implements LoginProtocol {
|
|||||||
if (responseType.hasResponseType(OIDCResponseType.TOKEN)) {
|
if (responseType.hasResponseType(OIDCResponseType.TOKEN)) {
|
||||||
redirectUri.addParam("access_token", res.getToken());
|
redirectUri.addParam("access_token", res.getToken());
|
||||||
redirectUri.addParam("token_type", res.getTokenType());
|
redirectUri.addParam("token_type", res.getTokenType());
|
||||||
redirectUri.addParam("session-state", res.getSessionState());
|
redirectUri.addParam("session_state", res.getSessionState());
|
||||||
redirectUri.addParam("expires_in", String.valueOf(res.getExpiresIn()));
|
redirectUri.addParam("expires_in", String.valueOf(res.getExpiresIn()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user