koa-passport icon indicating copy to clipboard operation
koa-passport copied to clipboard

Passport middleware for Koa

Results 13 koa-passport issues
Sort by recently updated
recently updated
newest added

It seems to be because of this https://github.com/jaredhanson/passport/issues/907, probably a good idea to downgrade the passport version for now.

When I use `koa-passwort` with `passport-local`, user database info such as `password` are in `ctx.state.user`. What's `ctx.state.user` used for ? Should I wrap(remove `password`) it before pass to frontend, or...

`request.subdomains` getter depends on `request.app.subdomainOffset`, which can be configured after koa is instantiated: - https://koajs.com/#settings e.g. for hostname `app.example.com` original ctx.subdomains would resolve to ['app'] (with koa's default subdomainOffset =...

help-wanted

In Typescript, router context type was conflict.

I'm writing my own middleware that calls `koa-passport` internally, It would be great to have access to `AuthenticateOptions` for type-safety.

Passport seems to [support multiple strategies being passed in an array to `passport.authenticate()`](https://github.com/passport/express-3.x-http-basic-and-digest-example/blob/master/server.js#L55) In trying to get this to work with `koa-passport` though, I've been unable to get subsequent strategies...

Spent a lot of time with debugging and looking for a problem with **@next** version: I used a lot of strategies(local, JWT...) with passed callback in `passport.authenticate` function and can't...

This isn't a bug, but it took me quite a long time to figure out, so thought others have struggled with the same issue. When using the **authenticate** method, one...

Is it possible to use koa-passport without using koa-session? We've been using a much older version of koa-passport (1.3.0), aren't calling (app.use(passport.session()) and are able to authenticate users based off...

I tried to change userProperty in initialize function but in but userProperty still 'user' and there is no custom userProperty in ctx.state. I forked repo and pass userProperty in _initialize...