-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move OAuth code->token routines from SessionSrv to Builder-API #616
Conversation
* Add `ExpiringSet` to dbcache crate. This is identical to the `BasicSet` except entities will expire from the set after an expiration time defined by a static trait function * `IndexSet` can now set the type of Key along with the type of the Value it stores at that key * Add GitHub -> Account directory lookup index to SessionSrv. This is used to map external IDs to our internal ID format * Fixes routing of SessionCreate messages. All messages will be routed by their external ID Signed-off-by: Jamie Winsor <[email protected]>
Ok(Response::with((status::Ok, encoded))) | ||
match github::authenticate(code) { | ||
Ok(token) => { | ||
match github::user(&token) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The matchers are certainly doing nice work here
@reset Aside from one question above, this look great to me. I'm reasonably sure I understand the need for this now and agree that it's the right move. Good to merge! |
📌 Commit 09c0234 has been approved by |
* Add `ExpiringSet` to dbcache crate. This is identical to the `BasicSet` except entities will expire from the set after an expiration time defined by a static trait function * `IndexSet` can now set the type of Key along with the type of the Value it stores at that key * Add GitHub -> Account directory lookup index to SessionSrv. This is used to map external IDs to our internal ID format * Fixes routing of SessionCreate messages. All messages will be routed by their external ID Signed-off-by: Jamie Winsor <[email protected]> Pull request: #616 Approved by: reset
☀️ Test successful - travis |
* Add `ExpiringSet` to dbcache crate. This is identical to the `BasicSet` except entities will expire from the set after an expiration time defined by a static trait function * `IndexSet` can now set the type of Key along with the type of the Value it stores at that key * Add GitHub -> Account directory lookup index to SessionSrv. This is used to map external IDs to our internal ID format * Fixes routing of SessionCreate messages. All messages will be routed by their external ID Signed-off-by: Jamie Winsor <[email protected]> Pull request: #616 Approved by: reset
This change will move external user identification to the gateway service (Builder-API) from the session service (SessionSrv). We need to move external authentication here to know a) which SessionSrv to route messages to when we don't currently have a token and, b) to help with rate limiting authentication messages in case of an attack.
ExpiringSet
to dbcache crate. This is identical to theBasicSet
except entities willexpire from the set after an expiration time defined by a static trait function
IndexSet
can now set the type of Key along with the type of the Value it stores at that keyto our internal ID format
Signed-off-by: Jamie Winsor [email protected]