Skip to content

Is it possible to use RS256 in JWT ? #12250

Answered by wsargent
MihaiBeigar asked this question in Q&A
Discussion options

You must be logged in to vote

The default session cookie baker is here:

https://github.com/playframework/playframework/blob/main/core/play/src/main/scala/play/api/mvc/Session.scala#L120

and then the CookiesModule binds that:

https://github.com/playframework/playframework/blob/main/core/play/src/main/scala/play/api/mvc/Cookie.scala#L844

So you can override the binding to SessionCookieBaker to use something other than the DefaultSessionCookieBaker with your own module and implementation, so like https://www.playframework.com/documentation/2.8.x/SettingsSession#URL-Encoded-Cookie-Encoding only with your own module instead.

play.modules.disabled+="play.api.mvc.CookiesModule"
play.modules.enabled+="com.mycompany.MyCookieMo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MihaiBeigar
Comment options

@wsargent
Comment options

Answer selected by MihaiBeigar
@mkurz
Comment options

@MihaiBeigar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants