-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Google authorization endpoint #45
Comments
I think I understand the issue. There needs to be a claim for the Google IdP URL that can be verified against a local configuration file ( as noted in CVE-2022-31027 ). The current "idp" claim in CILogon-issued tokens is "http://google.com/accounts/o8/id". This value is Google's original OAuth 1.0a endpoint. (CILogon has been around for over 10 years!) Since this value is used in the CILogon database as a key, is not practical to change this value. The alternative is to change Google's "EntityID" value from https://cilogon.org/idplist/ . I have created a CILogon Jira task to investigate this issue. |
In the CILogon TEST deployment (https://test.cilogon.org), I have updated the "entityID" values for the social Identity Providers (GitHub, Google, Microsoft, ORCID) as reported by https://test.cilogon.org/idplist/ to match the "idp" value from the OAuth2/OIDC "userinfo" endpoint.
(Note that these values are simply identifiers for CILogon and are not the actual OAuth2 authorization endpoints.) This update still supports the old "entityID" values for the purposes of the "idphint" query parameter and skinning, e.g., https://test.cilogon.org/?idphint=https%3A%2F%2Faccounts.google.com%2Fo%2Foauth2%2Fauth . So no client-side changes are necessary if using optional query parameters (https://www.cilogon.org/oidc#h.p_IWGvXH0okDI_). This update will be deployed to production mid-July. |
The update has been deployed to https://cilogon.org . Please contact [email protected] if the update does not address this issue. |
Thank you very much @terrencegf ✨ |
Context
According to https://developers.google.com/identity/protocols/oauth2/openid-connect, the OpenID Connect authorization endpoint is
https://accounts.google.com/o/oauth2/v2/auth
.Also, the list at https://cilogon.org/idplist/ also lists the entity id of Google being https://accounts.google.com/o/oauth2/auth
Issue
It seems that CILogon is using an old Google endpoint, which is http://google.com/accounts/o8/id as I didn't find any references of this endpoint in the Google docs.
I'm not familiar with the codebase, but the url above seems to be used a few times https://github.com/ncsa/OA4MP/search?q=http%3A%2F%2Fgoogle.com%2Faccounts%2Fo8%2Fid&type=code
The text was updated successfully, but these errors were encountered: