Grant Limberg
5fcaed086d
another at->idt for exp
4 years ago
Grant Limberg
130689d82b
remove extraneous debug log line
4 years ago
Grant Limberg
1efceb86fc
get exp time out of correct token
4 years ago
Grant Limberg
1d92974447
auth0 compatibility
4 years ago
Grant Limberg
de56f571c7
enable rfc3339 timestamps in oidc library for auth0
4 years ago
Adam Ierymenko
7efb1cf7d3
Bundle Edge WebView dependency EXE and statically link MSVC DLLs
4 years ago
Grant Limberg
73ec8cddd7
Show sso errors on the last step of the oidc process
4 years ago
Grant Limberg
aa97aabb4e
for now, only enable sso on certain platforms
...
mac, windows, linux x86/x86_64/aarch64
4 years ago
Grant Limberg
b7952d7f39
no longer need direct import of serde here either
4 years ago
Grant Limberg
c380a4e4bd
cleanup
4 years ago
Grant Limberg
9c487cbfb8
Remove jsonwebtoken package dependency
...
Replaced with rust-jwt. `jsonwebtoken` relies on the ring package which explodes on non-x86/x64 architectures
4 years ago
Grant Limberg
d719137565
temp workaround for oidc auth dropping issue
...
Add a method to "kick" the refresh thread and re-post the tokens in the case where the thread is somehow still running & controller pushes out an AUTH_REQUIRED. This situation happens in a corner case still under investigation where the controller pushes out many copies of the network config repeatedly
4 years ago
Grant Limberg
3d4d087f07
make some impl functions pub
4 years ago
Grant Limberg
953e62f103
Clean up some extraneous output in release mode
4 years ago
Grant Limberg
8ea192fcab
update dependency specs
4 years ago
Grant Limberg
50b866c5cf
clean up & pass along errors from ZeroIDC::new() method
4 years ago
Grant Limberg
cf411efd1d
a little cleanup
4 years ago
Grant Limberg
057356a725
Just some comments
4 years ago
Grant Limberg
a69e91c541
Fix hash verification on refresh
4 years ago
Grant Limberg
8fccf3136c
Enable validation of token hashes as part of the oidc process
4 years ago
Grant Limberg
2435ab70ab
remove some extra verbose logging
...
... and baby you got a full flow goin on
4 years ago
Grant Limberg
2293b0703f
Can get Central JSON bundle back to zerotier-one window
4 years ago
Grant Limberg
0ab5cce878
TIL: Its not as hard as I thought to make Rust deadlock
4 years ago
Grant Limberg
df9a7497b1
refactor out the separate AuthInfo struct
...
consolidated everything into the single IDC struct. Should help keep from rotating the pkce token as often & causing issues with the login window flapping
4 years ago
Grant Limberg
2d4fe9e6d0
Get oidc lib compiled into main binary on Windows
4 years ago
Grant Limberg
dc12bde068
add vs makefile project to build oidc rust library
4 years ago
Grant Limberg
b3fbbd3124
refresh tokens now working
...
Still investigating the best way to do a couple things, but we have something working
4 years ago
Grant Limberg
5095d73de3
moar better error handling
4 years ago
Grant Limberg
1192b1b422
refresh token run loop
...
Need central-side work to complete
4 years ago
Grant Limberg
43c528fdb6
Get expiry time out of access token & propagate
4 years ago
Grant Limberg
7a8c89be9d
Post ID token to Central
4 years ago
Grant Limberg
4ce810b421
On our way to processing tokens
4 years ago
Grant Limberg
730482e62f
encode network ID into sso state param
4 years ago
Grant Limberg
663a09b38d
oidc stuff coming across the wire properly and generating a working login URL
4 years ago
Grant Limberg
73c186b111
add network_id extra param to auth flow
4 years ago
Grant Limberg
6393a4beec
progress
4 years ago
Grant Limberg
5f548705dd
lots more refactoring
4 years ago
Grant Limberg
91e9b736dd
make service objs dependent on zeroidc
4 years ago
Grant Limberg
0875fb5fe0
have this make an rlib too for the future
4 years ago
Grant Limberg
8d39c9a861
plumbing full flow from controller -> client network
4 years ago
Grant Limberg
f8bf91426b
.
4 years ago
Grant Limberg
4cadfd736f
move ffi code into its own file
4 years ago
Grant Limberg
1c7a5439d5
expose AuthInfo struct to external code
...
also get the auth URL
4 years ago
Grant Limberg
ebc4c898ff
pass in csrf token & nonce (generated externally)
4 years ago
Grant Limberg
56cf874d99
slow progress
4 years ago
Grant Limberg
31888f5ef8
provide issuer URL, client ID and local web port to constructor
...
also construct the oidc client
4 years ago
Grant Limberg
0069b1bac3
we can start & stop a thread. so that's nice.
4 years ago
Grant Limberg
c689c0bd8c
integrate with mac build system and add skeleton
4 years ago
Grant Limberg
271dfc0d2b
initial rust oidc lib
4 years ago