Alex Wright
|
c11d8f2f7c
|
Adding cookie to track session.
Now I can access postgres from the guards I think I can do better.
|
2020-03-02 01:14:41 +01:00 |
Alex Wright
|
7b7775e438
|
Was easier to get a db handle than expected
|
2020-03-02 01:00:50 +01:00 |
Alex Wright
|
9a6bd240ad
|
Adding (dummy) FromRequest impl for User
Need a way to access the db without a guard..
|
2020-03-01 23:06:01 +01:00 |
Alex Wright
|
6548aa0b7e
|
Fail suspended logins
|
2020-03-01 21:31:38 +01:00 |
Alex Wright
|
7f59729f1f
|
Create user in db after ldap-auth to FK tokens to
|
2020-03-01 20:54:22 +01:00 |
Alex Wright
|
03c988dafe
|
Adding create and find_and_create impl for User
|
2020-03-01 20:40:49 +01:00 |
Alex Wright
|
035551629c
|
Fixed option/nullable fields
|
2020-03-01 19:36:10 +01:00 |
Alex Wright
|
3606cdf4ee
|
Had to make fields Optional if they're Nullable..
Makes sense. Gonna need another type for pre-commited User objects
though.
|
2020-03-01 19:31:16 +01:00 |
Alex Wright
|
6cb7b5affa
|
Adding diesel dep.
Need somewhere to store sessions and tokens.
|
2020-03-01 16:57:53 +01:00 |
Alex Wright
|
dd21d419bd
|
Using Flash for login error message.
|
2020-02-29 20:56:50 +01:00 |
Alex Wright
|
9eaf121454
|
Adding route for login and login_form
The EmptyContext is probably dumb or at least goofy.. but I can't work
out a better way of making render() happy right now.
|
2020-02-29 20:23:50 +01:00 |
Alex Wright
|
fd1479edcd
|
Login form
|
2020-02-29 19:57:40 +01:00 |
Alex Wright
|
5e2975ab3b
|
Adding Tera for templates
|
2020-02-29 19:45:32 +01:00 |
Alex Wright
|
39d12d7765
|
Missing Cargo changes
|
2020-02-29 16:52:24 +01:00 |
Alex Wright
|
998e3de74b
|
Add LDAP group memberships to returned data
|
2020-02-29 16:49:24 +01:00 |
Alex Wright
|
f32681d95d
|
Switched to Rocket
|
2020-02-29 16:48:07 +01:00 |
Alex Wright
|
e0d1eb8897
|
Switch to 2018 edition use syntax
|
2020-02-23 20:37:30 +01:00 |
Alex Wright
|
b6ad7bcdd2
|
Add OIDC well-known URI.
Only has a static URI for the keys endpoint. Need to work out how to
build URIs for routes.
|
2020-02-23 20:25:03 +01:00 |
Alex Wright
|
10fbaaddb8
|
Little clean up
|
2020-02-23 20:18:00 +01:00 |
Alex Wright
|
29df4f4b64
|
Fix to handle bad or unreadable .pem keys
|
2020-02-23 20:08:55 +01:00 |
Alex Wright
|
4bd0de2e8d
|
Add logging lib
|
2020-02-23 20:04:07 +01:00 |
Alex Wright
|
e6f9148865
|
Use biscuit's JWK structures to format /get_keys.
New method to load a .pem and a loop over current dir for any .pem
|
2020-02-23 19:42:32 +01:00 |
Alex Wright
|
467a449457
|
Add env based config for LDAP addr
|
2019-08-11 12:37:54 +02:00 |
Alex Wright
|
ca45203392
|
Adding mockup of a JWKS keys output for OAuth2
|
2019-08-11 12:34:55 +02:00 |
Alex Wright
|
c3cb0b9cd5
|
Clean up error reporting a little
|
2019-08-03 20:29:10 +02:00 |
Alex Wright
|
9f8c47712a
|
Initial commit
|
2019-08-03 20:15:52 +02:00 |