Keycloak get cookie SPI

I have one question, i’ve made a custom event provider for login event, i need to know if i can pass a custom value from the form to the LOGIN event and get it, i don/t know if i can do that through cookies or something

Thanks for the help!

I don’t believe there is a way to do this directly. The only way I could think of doing this would be to add a custom Authenticator to the login flow which sets a note in the UserSessionModel. Then, in the event, you can use the sessionId to get the UserSessionModel from keycloakSession.sessions().getUserSession(realm, sessionId).