jaredhanson / passport-openid

OpenID authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-openid/?utm_source=github&utm_medium=referral&utm_campaign=passport-openid&utm_content=about
MIT License
98 stars 85 forks source link

No providers found for the given identifier #18

Closed curious-attempt-bunny closed 11 years ago

curious-attempt-bunny commented 11 years ago

I have the same error as encountered by #1 and #14. I've tried setting the stateless flag to true:

passport.use(new OpenIDStrategy({
    returnURL: 'http://localhost:3000/auth/openid/return',
    realm: 'http://localhost:3000/',
    stateless: true
},

I'm using an identifier of the form "myUserName@gmail.com". Any suggestions?

Failed to discover OP endpoint URL (message: No providers found for the given identifier)
    at /private/tmp/passport-openid/examples/signon/node_modules/passport-openid/lib/passport-openid/strategy.js:249:52
    at /private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:858:14
    at /private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:646:13
    at _parseHostMeta (/private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:500:5)
    at /private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:617:9
    at done (/private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:254:9)
    at IncomingMessage.<anonymous> (/private/tmp/passport-openid/examples/signon/node_modules/passport-openid/node_modules/openid/openid.js:258:32)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:910:16
    at process._tickCallback (node.js:415:13)
curious-attempt-bunny commented 11 years ago

I wasn't using the openid uri format. Ignore this.

jaredhanson commented 11 years ago

Gotcha, thanks. There are some hooks for extending the discovery process, but not sure it's worth the trouble.

Sent from my iPhone

On Jul 30, 2013, at 8:59 AM, Merlyn notifications@github.com wrote:

I wasn't using the openid uri format. Ignore this.

— Reply to this email directly or view it on GitHub.

benjibc commented 11 years ago

sorry @curious-attempt-bunny can you please explain a little about "wasn't using openid uri format"? I think I might be having the same problem with identifier "myUserName@gmail.com"