Add OAuthMiddleware for API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Software Center Agent |
Fix Released
|
Medium
|
Anthony Lenton |
Bug Description
Currently for calls such as ISubscriptionSe
1) verify every request with the identity provider - slow, or
2) create some sort of data store for identities that we've verified, but...
this second option seems unnecessary as this is what open auth is for. We should be able to instead allow the client to make OAuth-authenticated api requests by using the lazr.authentication OAuthMiddleware and adding an OAuth DataStore (from the little I've read so far). This would be more efficient as the identity provider would be contacted only once per token, and would mean that we're relying on standard oauth infrastructure, rather than creating our own less-thought-out solution.
Changed in software-center-agent: | |
milestone: | none → beta1 |
Changed in software-center-agent: | |
assignee: | nobody → Anthony Lenton (elachuni) |
status: | Triaged → In Progress |
Changed in software-center-agent: | |
status: | In Progress → Fix Committed |
Changed in software-center-agent: | |
status: | Fix Committed → Fix Released |