To Our Amazing Educators Everywhere,
Happy Teacher Appreciation Week!
Found this content helpful? Log in or sign up to leave a like!
Greetings Canvas Developers,
We currently support 2 Authentication providers for our Canvas environment,
So, we have set up a Discovery Page to help direct people to the appropriate login form. This all works well for general access.
But, we also have some specific integrations--like a mobile app which use OAuth2--that are only available to the registered students, faculty, and staff, and so having the Discovery Page in this flow is redundant and for many people undesirable.
Is there any way to direct an OAuth2 login to use a specific authentication provider and bypass the discovery page in these flows?
We've looked in the Developer Key settings and OAuth2 Endpoints, and haven't seen anything, but maybe I'm just not understanding some of these options?
Has anyone else done something similar and found a way around this?
To answer my own question here, there seems to be an (undocumented?) `authentication_provider` URL parameter that can be passed into a Canvas URL, including login/oauth2/auth, which will automatically direct the user to the indicated Authentication Provider.
Nice find, I think the underlying code that supports this is:
To participate in the Instructure Community, you need to sign up or log in:
Sign In