New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session Issues #39
Comments
I'm not sure if the session can be set per endpoint. Probably you can add a middleware before Grant's mount point and check if the user is about to navigate to a |
My solution was to fork the project and add a constructor parameter for additional middleware. That allows it to be added to the koa app that gets mounted. If i figure out how to do the same (if there is even a parallel idiom) for hapi/express, i'll probably send a PR your way. |
Got it. Actually up until version 3.0.3 Grant was using its own internal session store. |
I'm trying to use grant with koa, but my boss is pretty insistent that we not use session store for ANYTHING except the auth flows. So I can't just do what you examples do:
I'm using the koa-joi-router and I tried this:
to limit it to just the grant endpoints but I keep getting an error that I the session is missing or misconfigured. Based on some logs I added to grant in my
node_modules
folder, it looks like the redirect comes back and grant can't findsession.grant
or a provider. I added this to the callback generator around line 119:which spits out:
callback invoked {} {}
.Any suggestions or workarounds?
The text was updated successfully, but these errors were encountered: