openid

Authenticated REST API for a mobile app and website on ASP.NET Core with OpenIdConnect

女生的网名这么多〃 提交于 2019-12-12 03:48:26
问题 I have a pretty much boilerplate "ASP.NET Core Web Application (.NET Framework)" application, that should become a REST API, to be hosted on Azure, for use for a website & mobile app. I want to equip it with token authentication through the headers, and I have chosen for the OpenIdConnect package. I have copypasted the snippets from this page (https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server) into my template, and added the app.UseOAuthValidation() call, so the code

Microsoft Account OpenID authentication token request returns id_token but not access_token

喜你入骨 提交于 2019-12-12 03:08:56
问题 In the documentation at https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code ... it states that a successful response to a token request looks like: { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q...", "token_type": "Bearer", "expires_in": 3599, "scope": "https%3A%2F%2Fgraph.microsoft.com%2Fmail.read", "refresh_token": "AwABAAAAvPM1KaPlrEqdFSBzjqfTGAMxZGUTdM0t4B4...", "id_token":

Internal Server error while using Python OpenId with Google Authentication

白昼怎懂夜的黑 提交于 2019-12-12 02:57:08
问题 I have installed askbot.org on my local machine and When I tri to use google openid, I get following error. Here is full apache log. (I have replaced some hex strings) http://bit.ly/apache_log Can someone explain to me what could be problem ? 回答1: From your log, this seems to be the big issue: [Wed Mar 07 22:58:13 2012] [error] Received "invalidate_handle" from server From the answer to this question on invalidate_handle, it looks like a bug in the "Relying Party". I would double-check your

DotnetOpenAuth : No OpenId End point found error for localhost

こ雲淡風輕ζ 提交于 2019-12-12 02:46:59
问题 I am writing a custom Open Id Client as below public class CustomOpenIdClient : OpenIdClient { public CustomOpenIdClient() : base("TestOpenId", "`http://localhost:39167/server.aspx`") { } protected override Dictionary<string, string> GetExtraData(IAuthenticationResponse response) { FetchResponse fetchResponse = response.GetExtension<FetchResponse>(); if (fetchResponse != null) { var extraData = new Dictionary<string, string>(); extraData.Add("email", fetchResponse.GetAttributeValue

Saving information from facebook open id

南楼画角 提交于 2019-12-12 01:37:43
问题 I am doing a project in which user cal log in by registering to the site as well as using facebook login information . I am able to log in using facebbook login information but how will I save the information of the user so that next time he logs in the site will show his information (like in stackoverflow) . I am using PHP - smarty . print_r($_SESSION) is Array ( [fb_117743971608120_state] => 9cec0afaeea766a4c604308d750cae27 [fb_183884308338472_code] => 085FCZlNVcOmjOb5

retrieve value from query string

旧街凉风 提交于 2019-12-11 22:29:33
问题 I am integrating openid in my website. I am able to retrieve data(ex email) from op provider(by query string). But different op provider gives data in different key like gmail gives it under openid.ext1.value.alia2 key and yahoo gives it in under some different key. how should i retrieve value from query string. 回答1: You must check namespaces. For example, the server may return openid.ns.ax = http://openid.net/srv/ax/1.0 , and that would mean "everything that starts with openid.ax relates to

Why doesn't ServiceStack always link UserAuth and UserAuthDetails?

时光怂恿深爱的人放手 提交于 2019-12-11 19:32:18
问题 I am struggling with something that I would have thought ServiceStack would do "out of the box"... I have a ServiceStack API that allows authentication via credentials, basic, google OpenId and LinkedIn OAuth2. Starting with empty UserAuth and UserAuthDetails table I have found that if I: start my app and use credentials to log in log out log in using Google OpenId auth ServiceStack creates two separate UserAuth records rather than linking the Google UserAuthDetail with the Credential

IdentityServer4 How can I redirect after login to the revious url page without registering all routes at IdP

风流意气都作罢 提交于 2019-12-11 18:34:01
问题 As recommend I would have register the authorize callback url/redirect_url at IdP, which it works. But what if a client using MVC app tries to access a page with an unauthorized state, will be redirect to idsrv login page. The redirect_url is always (Home page entry point) as configured. To change this behavior I would have to register all possible routes at IdP. That can not a be solution! On idsrv Login method I have tried: Login(string returnUrl) checking the value from returnUrl it gives

Open id and facebook implementation in php?

白昼怎懂夜的黑 提交于 2019-12-11 17:48:29
问题 I am using Open ID on my website using Dope Openid library but I would like to add facebook as an open id provider to the list since facebook also supports OpenID...Can anyone help me out with an explanation or link me to a tutorial (staga.net is using it flawlessly on their site) *if someone can also explain to me how Staga is using buttons instead of a text box(even SO uses a text box) to have an open ID support...Thanks 回答1: check out rpxnow I'm not sure if I'm mistaking, but I don't

Connecting with EWS API service to outlook.com account with oAuth2 token

℡╲_俬逩灬. 提交于 2019-12-11 15:27:10
问题 I'm able to authenticate with live.com with my account on outlook.com at url https://login.microsoftonline.com/common/v2.0 I receive an accessToken and id token. My question is whether I can use this accessToken to retrieve exchange data about my emails through EWS API service using this token? ExchangeService. _exchangeService = new ExchangeService(ExchangeVersion.Exchange2007_SP1) { ConnectionGroupName = Guid.NewGuid().ToString() }; _exchangeService.Credentials = new WebCredentials("xxxxxxx