I went through a lot of google documentation and SO Q / A, but no luck. I wonder if someone has successfully used OpenId migration for OpenId Connect, as reported by Google.
This is what we did before:
IAuthenticationResponse response = _openid.GetResponse();
if (response != null) {
} else {
IAuthenticationRequest req = _openid.CreateRequest("https://www.google.com/accounts/o8/id");
req.AddExtension(new ClaimsRequest
{
Country = DemandLevel.Request,
Email = DemandLevel.Request,
Gender = DemandLevel.Require,
PostalCode = DemandLevel.Require,
TimeZone = DemandLevel.Require
});
req.RedirectToProvider();
}
This was done using a version of DotNetOpenAuth that dates back several years. Since Google has deprecated OpenId authentication, we are trying to upgrade to OpenID Connect. The key question is: can I somehow access the OpenId ID (in the form https://www.google.com/accounts/o8/id?id=xyz ) using the latest version of DotNetOpenAuth or in other ways?
DotNetOpenAuth, , ( ). Javascript, URL ( ):
https:
scope=openid%20profile%20email
&openid.realm=http:
&client_id=
&redirect_uri=http:
&response_type=id_token%20token
( Fiddler) , , DotNetOpenAuth, http://localhost/palkkac/. url . URL- realm, .
, id_token ( https://www.googleapis.com/oauth2/v1/tokeninfo?id_token=zyx), :
audience "client id is here"
email "mikkark@gmail.com"
expires_in 3597
issued_at //some numbers here
issued_to "client id is here"
issuer "accounts.google.com"
user_id "here is a sequence of numbers, my id in the OpenID Connect format that is"
verified_email true
, openid_id, , Google, , . , , - ?
, , - : https://developers.google.com/accounts/docs/OpenID. 2, . 3 openid_id, , .
Google, .. URL- , javascript, Google dev. , , .
: , , . , Javascript Google HTTPS ( , ).
, , , , , , Javascript:
- (
https://stackoverflow.com/questions/22842475/migrating-google-openid-to-openid-connect-openid-id-does-not-match) , , , OpenId2.0. , , . - over openid_id , , id_token Google, , DotNetOpenAuth.
- , , Google openid_id.