1332 Commits
Author SHA1 Message Date
Kim Tore Jensen a7975d707c fixes after discussion with TT and TH 2021-08-23 10:58:46 +02:00
Trong Huu Nguyen eb7f18b46d wip: replace generated session value with provided value 2021-08-23 10:56:31 +02:00
Trong Huu NguyenandKent Daleng 7ab8967b91 test: remove debug logging
Co-Authored-By: Kent Daleng <kent.daleng@nav.no>
2021-08-23 10:27:45 +02:00
Trong Huu NguyenandKent Daleng 1fcc97819b feat: implement self-initiated logout
Co-authored-by: Kent Daleng <kent.daleng@nav.no>
2021-08-23 10:26:47 +02:00
Trong Huu NguyenandKent Daleng f36848babe feat: validate id_token in auth code flow
Co-authored-by: Kent Daleng <kent.daleng@nav.no>
2021-08-23 09:59:15 +02:00
Kim Tore Jensen 83b7eb65b0 fix crypt tests 2021-08-20 13:09:29 +02:00
Kim Tore Jensen 9722c17eb5 route requests to upstream host 2021-08-20 12:22:17 +02:00
Kim Tore Jensen 23f7c9bd6d WIP proxying 2021-08-19 17:32:10 +02:00
Kim Tore Jensen c9668986a6 encrypt cookies and store access tokens in-memory with browser session 2021-08-19 15:25:39 +02:00
Kim Tore Jensen 8baa18281d remove caos/oidc as dependency 2021-08-19 14:25:55 +02:00
Kim Tore Jensen 262413036c functional oauth2 pkce flow 2021-08-19 14:24:24 +02:00
Kent Daleng 8815ffb34b wip: callback function 2021-08-19 14:05:21 +02:00
Kim Tore Jensen 4da8e5263f loginurl as our own implementation 2021-08-19 13:05:39 +02:00
Kim Tore Jensen 60ce40e404 fixes and formatting 2021-08-19 12:03:56 +02:00
Kent Daleng 956cda2a40 generate a codeverifier better 2021-08-19 12:02:54 +02:00
Kent Daleng f94dfc6c1c add .vscode 2021-08-19 08:36:35 +02:00
Kent Daleng 6d5a14358e generate a long enough code_verifier
idporten wants one at least 43 chars long; a single UUID is 36.. so i smash two together :)
also, this involves grabbing the internals of the function we called earlier and putting it here instead
2021-08-19 08:35:25 +02:00
Kent Daleng 7458ebd5d7 attempt to exchange code on callback 2021-08-18 13:08:23 +02:00
Kent Daleng b1272ed712 refactor login, use caos/oidc 2021-08-18 11:42:50 +02:00
Kent Daleng a7eacb3b66 whoops, i meant 8090 2021-08-18 10:19:51 +02:00
Kent Daleng 252306fabc define port 3000 2021-08-18 10:14:36 +02:00
Kim Tore Jensen 6c9c34244f configurable oauth2 redirect url parameters 2021-08-18 09:59:44 +02:00
Kent Daleng 5b625769d1 use authorization endpoint from wellknown 2021-08-18 09:46:15 +02:00
Kent Daleng 3784006e99 fetch well-known config from remote and store it in runtime config 2021-08-18 07:46:09 +02:00
Kent Daleng f09cfabfdf add some info about what this app does 2021-08-17 15:53:48 +02:00
Kim Tore Jensen 2b5206fdff run a webserver and supply a non-working login redirect uri 2021-08-17 15:31:03 +02:00
Kent Daleng 1177ef1210 implement config and logging 2021-08-17 14:30:34 +02:00
Kent Daleng ef7d630d38 enable idporten 2021-08-17 14:04:21 +02:00
Kent Daleng 8776d289f1 add alpine rule 2021-08-17 14:01:42 +02:00
Kent Daleng accb44925a add test rule, fix env injections 2021-08-17 14:00:13 +02:00
Kent Daleng 18b9d43545 use ci 2021-08-17 13:57:06 +02:00
Kent Daleng 1aec4cd36a initial commit 2021-08-17 13:39:10 +02:00