openid

Single Sign-On with Google Apps + App Engine

百般思念 提交于 2019-12-04 01:31:22
Is it possible to achieve SSO with the built-in OpenId on App Engine? I've been trying to integrate a Marketplace app and get the user logged in when coming from Google Apps (the admin panel or universal navigation). I failed miserably, then now I found this: "The one exception to this is applications which do hybrid OpenID/OAuth — whitelisting does not currently work with this approach." (from here ) I assume that I have to implement OpenId using a library instead of using the built-in one to achieve SSO with Google Apps in my app? Or if it is possible with built-in OpenId, is there an

OpenID. How do you logout

*爱你&永不变心* 提交于 2019-12-03 23:22:31
On a website I have implemented the login using OpenID (based on StackOverflow). But I can't seem to logout. On my host I can logout but when the user tries to login again (especially with google) the authentication goes through without requiring the user to type in name and password. How can I indicate to the OpenID Provider that a user is no longer logged into the site? OpenID authenticates users to your site, when then starts a session on your site. You destroy or invalidate your site's session separately from the user's session with their OpenID provider. User visits joewidgets.com > User

A good OpenID implementation in Erlang?

本小妞迷上赌 提交于 2019-12-03 22:16:57
I'm looking for a good (Or at least working) implementation of OpenID in erlang. I've looked at several different solutions, but non of them are working 100%. Have your tried eopenid? http://github.com/etnt/eopenid You can contact Tobbe via his blog if you find some problems with it: http://www.redhoterlang.com/entry/be023e5181553216197369bbe32c4039 So far as I know, eopenid supports only OpenID 1.1. I have some code for doing OpenID 2.0, parts of which are based on eopenid, at http://github.com/brendonh/erl_openid (and a quick tutorial at http://taizilla.wordpress.com/2010/07/21/erl_openid/ )

Overriding TokenEndPoint in AspNet.Security.OpenIdConnect.Server

a 夏天 提交于 2019-12-03 21:00:16
问题 question related to this post here: Configure the authorization server endpoint. Using the above example I am able to get token. previously it was possible to get additional information by over riding public override Task TokenEndpoint(OAuthTokenEndpointContext context) { foreach (KeyValuePair<string, string> property in context.Properties.Dictionary) { context.AdditionalResponseParameters.Add(property.Key, property.Value); } return Task.FromResult<object>(null); } how do you achieve that in

微信小程序的登入与授权

喜欢而已 提交于 2019-12-03 20:44:30
官方文档: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html 小程序登录 小程序可以通过微信官方提供的登录能力方便地获取微信提供的用户身份标识,快速建立小程序内的用户体系。 登录流程 说明: 调用 wx.login() 获取 临时登录凭证code ,并回传到开发者服务器。 调用 auth.code2Session 接口,换取 用户唯一标识 OpenID 和 会话密钥 session_key。 之后开发者服务器可以根据用户标识来生成自定义登录态,用于后续业务逻辑中前后端交互时识别用户身份。 注意: 会话密钥 session_key 是对用户数据进行 加密签名 的密钥。为了应用自身的数据安全,开发者服务器不应该把会话密钥下发到小程序,也不应该对外提供这个密钥。 临时登录凭证 code 只能使用一次 小程序端执行wx.login后在回调函数中就能拿到上图的code,然后把这个code传给我们后端程序,后端拿到这个这个code后,可以请求code2Session接口拿到用的openid和session_key,openid是用户在微信中唯一标识,我们就可以把这个两个值(val)存起来,然后返回一个键(key)给小程序端,下次小程序请求我们后端的时候,带上这个key

What is the difference between id_token and access_token in Auth0

我与影子孤独终老i 提交于 2019-12-03 18:44:06
问题 In Auth0 you can use refresh tokens. In this link, we can see many returned parameters: lock.showSignin({ authParams: { scope: 'openid offline_access' } }, function (err, profile, id_token, access_token, state, refresh_token) { // store refresh_token }); Apparently, access_tokens can be used to retrieve user profile data. But this appears to be specific to oauth, and I thought auth0 uses openid? What is the difference between id_token and access_token ? 回答1: OpenID Connect is built on top of

What should I pass for the WWW-Authenticate header on 401s if I'm only using OpenID?

醉酒当歌 提交于 2019-12-03 18:38:13
问题 The HTTP spec states: 10.4.2 401 Unauthorized The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource. If the only login scheme I support is OpenID (or CAS, or OAuth tokens, &c.), what should I put in this field? That is, how do I indicate that the client needs to pre-authenticate and create a session rather than try to send credentials along with each request? Before you

How to add logout feature to an OpenID enabled site?

我与影子孤独终老i 提交于 2019-12-03 17:57:13
问题 I have recently added OpenID login to my website. But I don't know how to add the logout feature. For example, on clicking the Sign In button I am able to show the login form of the selected OpenID provider, for example Google Account. However, I don't know how to implement a Sign Out button to sign out of the Google Account. Please advice. 回答1: OpenID relying party can't log user out of OP, you can only implement local logout. Just like RP can not log user into OP. 回答2: Individual OpenID

Stateless RESTful API and 3rd party authentication

点点圈 提交于 2019-12-03 17:45:52
问题 I want to use 3rd party authentication (OpenID, maybe OAuth but I guess OAuth is meant for authorization ) so that user can login easily. But does authenticating on every request means I call the 3rd party (eg. Google) many times even if I don't need any thing from it? For example, I use OpenID authentication but the API I use is something internal (eg. /api/tasks/add). 回答1: Let's fix understanding issues first. OpenID and OAuth are a bit different. There is a simple way to memorize that

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