Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Problem with sessionStore in v5.0.0 #563

@rodolfosaraiva

Description

@rodolfosaraiva

Issue description

I'm using grails-spring-security-rest version 5.0.0 with grails 6.2.2

When trying to log in with Google2Client, I'm getting the following error:

Cannot invoke "org.pac4j.core.context.session.SessionStore.set(org.pac4j.core.context.WebContext, String, Object)" because "sessionStore" is null

Trying to debug, I saw that in RestOauthService it is passing the sessionStore as null:
image

And it's used in final Optional<Credentials> getCredentials:

image

What could I be doing wrong?

If I customize the client, overriding retrieveCredentials to use JEESessionStore.INSTANCE.

The exception is thrown in cleanAttemptedAuthentication. which I was unable to override.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions