Commit 8b1c1e2
authored
Update authenticated example - set token in echo context.. (#917)
* Update authenticated example so that we demonstate how to make the token available to the handlers
* Favor key instead of string1 parent 8fbbe02 commit 8b1c1e2Copy full SHA for 8b1c1e2
1 file changed
+9Lines changed: 9 additions & 0 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- examples/authenticated-api/echo/server
Expand file treeCollapse file tree
Open diff view settings
Collapse file
examples/authenticated-api/echo/server/jwt_authenticator.go
Copy file name to clipboardExpand all lines: examples/authenticated-api/echo/server/jwt_authenticator.go+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
11 | 12 | |
12 | 13 | |
| ||
17 | 18 | |
18 | 19 | |
19 | 20 | |
| 21 | + |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | 25 | |
| ||
73 | 76 | |
74 | 77 | |
75 | 78 | |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
76 | 85 | |
77 | 86 | |
78 | 87 | |
|
0 commit comments