Showing results for 
Show  only  | Search instead for 
Did you mean: 
Community Participant

How to determine LTI 1.3 login / oauth / authorize / jwks URLs

Hi all,

I am finalizing my LTI 1.3 tool implementation, and I am down to one remaining question.  During development I hardcoded some Canvas URLs into my configuration:

const CANVAS_OIDC_LOGIN_URL = 'https://my-canvas-hostname/api/lti/authorize_redirect';
const CANVAS_OIDC_TOKEN_URL = 'https://my-canvas-hostname/login/oauth2/token';
const CANVAS_OIDC_JWKS_URL = 'https://my-canvas-hostname/api/lti/security/jwks';

Now it is time to replace my development URLs with some real values, and I am unsure what I should be using.

This post, indicates you can use "" or "" for instances hosted by Canvas / Instructure.

I'm assuming that for self-hosted instances, "" will not work and I will need to hit "" instead.  (Is that right?)  But as a 3rd party, I wont know if a given Canvas site is self-hosted.

Is the best bet to forget about "" and always request over the customer's Canvas domain?  Or do we assume that all Canvas instances are hosted, and see if we run into any edge cases that are self-hosting?

Maybe I'm over thinking things...


Labels (2)
0 Kudos
3 Replies
Community Contributor

I think you are fine to just always use the customer's domain.

One advantage of using when possible is that because the same JWK file is valid for all Instructure hosted customers you are much more likely to have the JWK cached and so use less resources on your side, but also process the login faster as you don't have to request the JWK when you haven't seen a login for that domain for a while.

Community Participant

Thx for the reply!  This means adding another configuration field to track the Canvas hostname for each customer, but I don't think that is too difficult.  I will give it a try.

Community Participant

If you are the tool side of the connection, then your customer should provide you with the details of their platform configuration which would include the endpoints you refer to, as well as the Platform (issuer) ID, Client ID and Deployment ID.  (Note that for Canvas the Authorization, or Access Token, Server ID will be the same as its endpoint.)