instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.57k stars 2.47k forks source link

OIDC login hint #2335

Open chris-perts opened 6 months ago

chris-perts commented 6 months ago

This adds some support for the login_hint parameter, defined by the OIDC Core 1.0 spec and mentioned in Google's documentation of the same.

With this change, if users are directed to "/login/google?login_hint=user@foo.com", assuming canvas has the "google" authentication option set up, it will add &login_hint to the authorization request URL. The effect on the user is to skip the account choice screen if the user has multiple active sessions with the IdP and the email provided in login_hint matches one of them.

CLAassistant commented 6 months ago

CLA assistant check
All committers have signed the CLA.