shockrah
|
c1f8ebee1d
|
slight typo in parameters fixed
|
2020-06-01 22:25:21 -07:00 |
|
shockrah
|
b3289ca9bd
|
Basic router skeleton for freechat's new auth/dispatch model
|
2020-06-01 22:25:01 -07:00 |
|
shockrah
|
c98d6dc503
|
Dependancies moving to full asynchronous libraries
|
2020-06-01 22:19:06 -07:00 |
|
shockrah
|
5a2a87fff7
|
/channels/list/voice + text now implemted and ready for testing
|
2020-05-27 21:29:57 -07:00 |
|
shockrah
|
e99e30b45c
|
Moved VOICE_CHANNEL & TEXT_CHANNEL const's to channels module
|
2020-05-27 21:29:27 -07:00 |
|
shockrah
|
4e61ddbe11
|
New smol note regarding state of API server
|
2020-05-27 20:59:17 -07:00 |
|
shockrah
|
cc22a56538
|
Removed used Generic error response
|
2020-05-27 19:59:01 -07:00 |
|
shockrah
|
db901010b0
|
prefixed route uri for get_voice_channels and get_text_channels with /list to be more specific to their behavior
|
2020-05-25 13:48:16 -07:00 |
|
shockrah
|
d9ac6c08a2
|
experimental generic error handler
|
2020-05-25 13:46:57 -07:00 |
|
shockrah
|
a14b7dd677
|
removed old web files which are no longer used
|
2020-05-22 16:26:22 -07:00 |
|
shockrah
|
13ab387a93
|
new test for encode params
|
2020-05-20 02:05:43 -07:00 |
|
shockrah
|
97e6b026cc
|
utils::new_key now has a larger entropy pool + is generally smaller/quicker
encode params takes a &[u8] as parameter now instead of &str
utils::decode_params removed for now as it has not real use atm
|
2020-05-20 02:05:06 -07:00 |
|
shockrah
|
4f64fc3a13
|
utils::decode_params now uses the same config as utils::encode_params
|
2020-05-20 01:21:01 -07:00 |
|
shockrah
|
40d4720977
|
Helper function in test::auth to quickly build fake users
New test to verify correct behavior of '/auth/login' route
|
2020-05-20 00:50:46 -07:00 |
|
shockrah
|
ab4fe70081
|
test::auth::mysql_conn helper function for mysql connections
test::auth::feed_n_leave added form header and cleaned up post parameters
test::auth::dummy_leave standalone test for route => /auth/leave
|
2020-05-19 21:48:13 -07:00 |
|
shockrah
|
f12048b49b
|
utils::encode_param now encodes data without padding
|
2020-05-19 21:46:17 -07:00 |
|
shockrah
|
84ccfff2aa
|
auth::login now emites a url safe api session key
models::_USER_ONLINE updated to suppress unused var warnings
|
2020-05-19 20:15:53 -07:00 |
|
shockrah
|
895d7246f0
|
auth::create_new_session_key => impl not tested
auth::login now generates a 500 on db insertion failure
auth::login returning single json value instead of full struct
|
2020-05-19 20:13:56 -07:00 |
|
shockrah
|
87fc6700a4
|
models::InsertableSession added for session creation
|
2020-05-19 20:10:39 -07:00 |
|
shockrah
|
ec4f9b5302
|
using secret as primary key
|
2020-05-19 20:08:26 -07:00 |
|
shockrah
|
b007f57dfe
|
priv auth::blind_remove_session => impl not tested
pub auth::login => impl not tested
|
2020-05-19 19:36:29 -07:00 |
|
shockrah
|
dcb9e9641e
|
Skeleton code for login route handler
Helper functions to be written in next commits
|
2020-05-17 16:15:53 -07:00 |
|
shockrah
|
2b9635a2b1
|
removed auto_increment from session key id
Keys are to be generated by rust safely
|
2020-05-17 16:15:27 -07:00 |
|
shockrah
|
9e59d8200d
|
added generated code from diesel migration run for sessions
|
2020-05-17 16:05:45 -07:00 |
|
shockrah
|
883a007371
|
mod::rand_utils no longer exists
|
2020-05-17 16:05:21 -07:00 |
|
shockrah
|
f30a8abfc5
|
Removed old irrelevant comment
|
2020-05-17 16:05:01 -07:00 |
|
shockrah
|
9c03207489
|
Basic sessions schema which is used as a api key cache
|
2020-05-17 16:04:43 -07:00 |
|
shockrah
|
0340204141
|
moved rand_utils::new_key to utils crate
|
2020-05-10 13:06:54 -07:00 |
|
shockrah
|
bd45508584
|
base64 encode/decode functions added for sake of usage simplicity
URL_SAFE encoding is used
Both functions seem to pass the tests as well
|
2020-05-10 13:02:59 -07:00 |
|
shockrah
|
11669840b2
|
Adding base64
|
2020-05-10 12:56:55 -07:00 |
|
shockrah
|
68d864710a
|
Finished a test for using an invite via the /invite/join/<code> route
|
2020-05-10 12:56:38 -07:00 |
|
shockrah
|
52119d3ea7
|
Adding base64 to send/receive api_keys
Keys can contain special chars so we're preserving our entropy pool by encoding to url_safe chars before sending
|
2020-05-10 12:55:42 -07:00 |
|
shockrah
|
4703116e32
|
Verified that the join function is working as intended
|
2020-05-07 22:14:44 -07:00 |
|
shockrah
|
cd41dc64c3
|
create_new_user no longer checks id column when comparing against unix timestamps
|
2020-05-07 22:14:26 -07:00 |
|
shockrah
|
383fd59eba
|
Removed dead new_user_id() function
|
2020-05-07 22:13:44 -07:00 |
|
shockrah
|
55a09b5e98
|
Removed static files route handlers as they'll never be used
added auth route
|
2020-05-06 22:22:40 -07:00 |
|
shockrah
|
281b734073
|
calls to create_new_user no longer require a connection to be copied
|
2020-05-06 22:19:42 -07:00 |
|
shockrah
|
040d58a7ad
|
Cleaned up some verbosity
|
2020-05-06 22:19:12 -07:00 |
|
shockrah
|
22a1fd1730
|
Fixed issue with User database responses:
Added insertable to ensure compilation even though we dont use that trait
|
2020-05-06 22:18:51 -07:00 |
|
shockrah
|
81e6fd0a13
|
Invite are now consumed via a path with two dynamic params
/invite/join/<hash>/<name> is the real path to be used now but the app ui should this behavior in some clever way
|
2020-05-06 02:51:26 -07:00 |
|
shockrah
|
2f40da6c82
|
FromForm issue still there with /join route
Otherwise ready to integrate tests with auth module
|
2020-05-06 02:21:20 -07:00 |
|
shockrah
|
220bc11ef0
|
Fixed all 35 compile time issues with new auth module
Ready for testing
|
2020-05-06 02:20:32 -07:00 |
|
shockrah
|
306156407d
|
auth module use able now
|
2020-05-06 01:46:06 -07:00 |
|
shockrah
|
b729537088
|
updated queries to use the new user schema columns
removed old tests which have to be rebuilt from scratch
|
2020-05-06 01:45:49 -07:00 |
|
shockrah
|
811c6902ac
|
new users schema
changed column names to be more concise
|
2020-05-06 00:35:01 -07:00 |
|
shockrah
|
57dad692ae
|
poc for a leave route for those that no longer want to be a part of a given server
|
2020-05-05 23:46:29 -07:00 |
|
shockrah
|
5652388f4c
|
/join 'ing for new users code steramlined a bit
*mostly a coding qol change
|
2020-05-05 23:20:47 -07:00 |
|
shockrah
|
62204e52ca
|
dumy commit as work will continue on new async branch
|
2020-05-05 17:09:18 -07:00 |
|
shockrah
|
83aafa9ff5
|
new user structs for interacting with end users/db
|
2020-04-26 18:08:01 -07:00 |
|
shockrah
|
a217c64666
|
Essential data now passable from server to client regarding channels
|
2020-03-31 17:15:01 -07:00 |
|