Skip to content

Commit 50688aa

Browse files
authored
Merge pull request #78 from jgwerner/docs/fix-examples
Update helm chart examples
2 parents f0fd9b9 + ca53c40 commit 50688aa

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
- Add LTI 1.3 authenticator and config handler [#73](https://github.com/jupyterhub/ltiauthenticator/pull/73) ([@jgwerner](https://github.com/jgwerner))
1010

11-
## Contributors to this release
11+
#### Contributors to this release
1212

1313
([GitHub contributors page for this release](https://github.com/jupyterhub/ltiauthenticator/graphs/contributors?from=2021-09-01&to=2021-11-15&type=c))
1414

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ Examples:
124124

125125
#### Releases
126126

127-
Please refer to the documentation within JupyterHub's [RELEASE.md](https://github.com/jupyterhub/jupyterhub/blob/main/RELEASE.md).
127+
Please refer to the documentation within this repo's [RELEASE.md](https://github.com/jupyterhub/ltiauthenticator/blob/main/RELEASE.md).

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ hub:
103103
# Additional documentation related to authentication and authorization available at
104104
# https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/authentication.html
105105
JupyterHub:
106-
authenticator_class: lti
106+
authenticator_class: ltiauthenticator.LTIAuthenticator # LTI 1.1
107107
LTI11Authenticator:
108108
consumers: { "client-key": "client-secret" }
109109
username_key: "lis_person_contact_email_primary"
@@ -306,7 +306,7 @@ You may customize these settings with the `config_*` configuration options descr
306306

307307
#### Custom Configuration with JupyterHub's Helm Chart
308308

309-
If you are running **JupyterHub within a Kubernetes Cluster**, deployed using helm, you need to supply the client key & shared secret with the `lti.consumers` key. The example below also demonstrates how customize the `lti.username_key` to set the user's email as the JupyterHub username and the `lti.config_icon` to define a custom external tool icon when using the LTI 1.1 configuration XML endpoint:
309+
If you are running **JupyterHub within a Kubernetes Cluster**, deployed using helm, you need to supply the LTI 1.3 (OIDC/OAuth2) endpoints. The example below also demonstrates how customize the `lti13.username_key` to set the user's give name:
310310

311311
```yaml
312312
# Custom config for JupyterHub's helm chart
@@ -315,15 +315,22 @@ hub:
315315
# Additional documentation related to authentication and authorization available at
316316
# https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/authentication.html
317317
JupyterHub:
318-
authenticator_class: lti
319-
LTI11Authenticator:
320-
consumers: { "client-key": "client-secret" }
321-
username_key: "lis_person_contact_email_primary"
322-
config_icon: "https://my.static.assets/img/icon.jpg"
318+
authenticator_class: ltiauthenticator.lti13.auth.LTI13Authenticator
319+
LTI13Authenticator:
320+
# Use an LTI 1.3 claim to set the username. You can use and LTI 1.3 claim that
321+
# identifies the user, such as email, last_name, etc.
322+
username_key: "given_name"
323+
# The LTI 1.3 authorization url
324+
authorize_url: "https://canvas.instructure.com/api/lti/authorize_redirect"
325+
# The external tool's client id as represented within the platform (LMS)
326+
# Note: the client id is not required by some LMS's for authentication.
327+
client_id: "125900000000000329"
328+
# The LTI 1.3 endpoint url, also known as the OAuth2 callback url
329+
endpoint: "http://localhost:8000/hub/oauth_callback"
330+
# The LTI 1.3 token url used to validate JWT signatures
331+
token_url: "https://canvas.instructure.com/login/oauth2/token"
323332
```
324333
325-
_Note_: in the helm chart example configuration above `hub.config.LTI11Authenticator.username_key: lis_person_contact_email_primary` is equivalent to the standard JupyterHub configuration using `jupyterhub_config.py` with `c.LTI11Authenticator.username_key = lis_person_contact_email_primary`.
326-
327334
#### Configuration of LTI 1.3 with the Learning Management System
328335
329336
#### Canvas

0 commit comments

Comments
 (0)