Browse Source

link to docs

tags/19.8.1
Henning Jacobs 3 months ago
parent
commit
c080054184
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      examples/oauth2-log-jwt-sub/hooks.py
  2. +2
    -0
      examples/oauth2-validate-github-token/hooks.py

+ 2
- 0
examples/oauth2-log-jwt-sub/hooks.py View File

@@ -2,6 +2,8 @@
Example hook to parse a JWT access token and log the "sub" claim.

To be used with --oauth2-authorized-hook option

See also https://kube-web-view.readthedocs.io/en/latest/oauth2.html
"""
import base64
import json

+ 2
- 0
examples/oauth2-validate-github-token/hooks.py View File

@@ -2,6 +2,8 @@
Example hook to validate GitHub user login.

To be used with --oauth2-authorized-hook option

See also https://kube-web-view.readthedocs.io/en/latest/oauth2.html
"""
import aiohttp
import logging

Loading…
Cancel
Save