{"id":5,
"auth_type":"openid_connect",
"position":1,
"client_id":"dd0530c2-0dfa-4a0b-94bc-31c86cfaf74d",
"authorize_url":"https://myprovider.com/oauth/authorization",
"token_url":"https://myprovider.com/oauth/token",
"scope":"profile userid",
"login_attribute":"userid",
"jit_provisioning":false}
...
https://myprovider.com/login.php?asLen=905&AuthState=[****] 200
https://myprovider.com/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp 302
https://myprovider.com/oauth/authorization?client_id=[****]&redirect_uri=https%3A%2F%2Fmycanvas.com%2Flogin%2Foauth2%2Fcallback&response_type=code&scope=openid+userid&state=[****] 302
https://mycanvas.com/login/oauth2/callback?code=[****]&state=[****] 302
(shouldn't token endpoint be here?)
https://mycanvas.com/login 200
--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the
Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/canvas-lms-users/Gwq0mZ2UP28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
canvas-lms-use...@googlegroups.com
For more options, visit https://groups.google.com/d/optout.
<mailto:canvas-lms-use...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the
Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/canvas-lms-users/Gwq0mZ2UP28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
canvas-lms-use...@googlegroups.com
<mailto:canvas-lms-use...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
mvh
Olav Bringedal
--
--- You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Olav,
Is "another_hash" a string literal of another_hash, or is a hash that you sanitized? Cause if it's actually a hash, then yes, Canvas won't understand it. I've yet to run into a provider that doesn't give a string for the `sub` value. As for the scope of `userid`, it is totally dependent on your provider what additional scopes will do, and if they'll enable additional fields to be returned in the id_token, or if they just grant access to additional endpoints. OpenID Connect doesn't specify any of that. Of the existing OpenID Connect providers that Canvas is preconfigured for (Microsoft, Google), adding an additional scope causes additional keys to be added to the id_token itself (and not nested under the `sub` attribute). You can go look at the spec and see that `sub` _must_ be a case sensitive string value: http://openid.net/specs/openid-connect-core-1_0.html#IDToken, so if your provider is giving a Hash there, it is not valid OpenID Connect, and Canvas won't support it with the generic implementation. It should be simple enough to add a special case provider to Canvas though, inheriting from AccountAuthorizationConfig::OpenIDConnect, and overriding the unique_id method to handle the idiosyncrasies of your provider. Depending on who/what software your provider actually is, such a specialization may be a candidate for inclusion in to the regular version of Canvas. https://github.com/instructure/canvas-lms/commit/34caff40e3ba1e6148084dd8e491a11442460e70 gives a reasonable example of doing so.
{
"iss": "https://auth.dataporten.no",
"aud": "a75e5743-afcb-4948-b91e-1731b7708092",
"sub": "9f70f418-3a75-4617-8375-883ab6c2b0af",
"iat": 1457355586,
"exp": 1457359186,
"auth_time": 1457349875
}
--