google-openid

Restricting Login Access - Passport.js, Google Authentication

邮差的信 提交于 2019-12-03 17:07:43
Okay, so using passport.js works, and works well, from what I've seen. However, I'm not sure how to properly exclude certain users. If the application is intended to have restricted access, rather than just providing the user a method for logging in, how can I restrict the login through passport.js? As it stands, users can just visit /login and log in with their Google account, thereby getting access to the internals. Here is one way to do this, with comments throughout. The main thing is understanding this page from the author: http://passportjs.org/guide/authenticate/ , which I explain a

OpenID: is the identifier URL unique? what are the differences between the identifiers

泄露秘密 提交于 2019-12-03 15:58:04
问题 In the OpenID specs, it says: Identifier: An Identifier is just a URL. The whole flow of the OpenID Authentication protocol is about proving that an End User is, owns, a URL. Claimed Identifier: An Identifier that the End User says they own, though that has not yet been verified by the Consumer. Verified Identifier: An Identifier that the End User has proven to a Consumer that they own. Identity Provider: Also called "IdP" or "Server". This is the OpenID Authentication server that a Consumer

OpenID: is the identifier URL unique? what are the differences between the identifiers

强颜欢笑 提交于 2019-12-03 05:17:58
In the OpenID specs , it says: Identifier: An Identifier is just a URL. The whole flow of the OpenID Authentication protocol is about proving that an End User is, owns, a URL. Claimed Identifier: An Identifier that the End User says they own, though that has not yet been verified by the Consumer. Verified Identifier: An Identifier that the End User has proven to a Consumer that they own. Identity Provider: Also called "IdP" or "Server". This is the OpenID Authentication server that a Consumer contacts for cryptographic proof that the End User owns the Claimed Identifier. How the End User

List of available attributes for http://axschema.org and http://schemas.openid.net

北城以北 提交于 2019-12-03 02:29:04
问题 I have searched high, low, far and wide but can not find anything on the Internet that lists the available attributes for these schemas. Does anyone know where the documentation is for these? so far I know of: http://axschema.org/namePerson/first http://axschema.org/namePerson/last http://axschema.org/contact/email http://schemas.openid.net/ax/api/user_id 回答1: Well I cannot see axschema.org online anymore. But based on http://groups.google.com/group/axschema/browse_thread/thread

Which openid / oauth library to connect a django project to Google Apps Accounts?

眉间皱痕 提交于 2019-12-03 02:18:30
问题 I'm working on an intranet django project (not using GAE) for a company that uses Google Apps for login. So I'd like my users to be able to log in to my django project using their google accounts login. OpenID seems appropriate, although maybe Oauth might work too? I see a lot of similarly named libraries out there to connect django's auth system to external login systems: django-authopenid - http://bitbucket.org/benoitc/django-authopenid django-openid - http://github.com/simonw/django-openid

Why does the ID of Google's OpenID implementation change?

孤者浪人 提交于 2019-12-03 01:56:58
I'm trying to implement OpenId login for a web application. Whenever new user who logs in via OpenId I create a new user on the sustem, and among the data I store their openid URL, so that next time they login with that user. I'm testing this with my Gmail OpenID, and the problem is that everytime I do this, Google sends a different openid URL, that is, https://www.google.com/accounts/o8/id?id=SomethingThatChangesFromTimeToTime Of course I'm then not able to tell wheter this is or not a new user. I'm a bit puzzled: shouldn't the openid identifier always remain the same? SztupY Google's OpenID

How can I decode a google OAuth 2.0 JWT (OpenID Connect) in a node app?

不问归期 提交于 2019-12-03 01:21:18
问题 I'm having a heck of a time here trying to use google OAuth to authenticate users in my node express app. I can successfully do the OAuth, which returns a response like so: { access_token: 'token string', id_token: 'id.string', expires_in: 3599, token_type: "Bearer" } This all makes sense, but I can't for the life of me figure out how to decode the JWT. I am a bit inexperienced in all this, so this is all a bit foreign to me. Following the instructions listed here: https://developers.google

Google Oauth for YouTube : Why do I get “Undefined index: oauth_token” ( Jim S.' code )

£可爱£侵袭症+ 提交于 2019-12-02 17:11:07
问题 I got a little problem with the OAuth for Google, I use the Jim Saunder Libraire for CodeIgniter (http://codeigniter.com/wiki/OAuth_for_Google) but when I came to my access_youtube function, which look like that : public function access_youtube() { //STEP 2 // Here is the first call to load the library $params['key'] = 's390075769.onlinehome.fr'; $params['secret'] = 'iHD72YKzWmbm8VTwncht_E-d'; // We can change the signing algorithm and http method by setting the following in your params array

How can I decode a google OAuth 2.0 JWT (OpenID Connect) in a node app?

夙愿已清 提交于 2019-12-02 16:37:13
I'm having a heck of a time here trying to use google OAuth to authenticate users in my node express app. I can successfully do the OAuth, which returns a response like so: { access_token: 'token string', id_token: 'id.string', expires_in: 3599, token_type: "Bearer" } This all makes sense, but I can't for the life of me figure out how to decode the JWT. I am a bit inexperienced in all this, so this is all a bit foreign to me. Following the instructions listed here: https://developers.google.com/accounts/docs/OAuth2Login#validatinganidtoken I am attempting to decode the JWT locally in my node

List of available attributes for http://axschema.org and http://schemas.openid.net

别说谁变了你拦得住时间么 提交于 2019-12-02 15:55:58
I have searched high, low, far and wide but can not find anything on the Internet that lists the available attributes for these schemas. Does anyone know where the documentation is for these? so far I know of: http://axschema.org/namePerson/first http://axschema.org/namePerson/last http://axschema.org/contact/email http://schemas.openid.net/ax/api/user_id Well I cannot see axschema.org online anymore. But based on http://groups.google.com/group/axschema/browse_thread/thread/49312a23a7d5ecce# I think [ http://openid.net/schema] superseeds [ http://axschema.org] . Here is the list, also on http: