Commit Graph

9 Commits

Author SHA1 Message Date
Kent Daleng
956cda2a40 generate a codeverifier better 2021-08-19 12:02:54 +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
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
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