-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add oauth library #29
Conversation
4e96104
to
1ca1e37
Compare
b23827c
to
ec7b1f0
Compare
3ead799
to
a05d592
Compare
There are some features missing from the current implementation, but I think it's best to add them in separate PRs in order not to overload this one:
|
I agree, let's keep this as a separate PR |
e0deaab
to
4aa7d0e
Compare
On the requirer side do we want to emit an event once the relation is broken or are the charms expected to handle that on their own? |
|
Unfortunately, there is no way in hydra to choose the client_id. The reasoning behind it is that they create client_ids using some hash function to optimize SQL queries for deployments with millions (?) of clients. I tried to think of a way to avoid having to use the peer relation but I don't think we can (we could do a full diff, ie check the relations and compare them with the clients in the database, but that seems way worse). |
4e2a56e
to
f88d479
Compare
ffbb535
to
ff38052
Compare
Fix return types, check leadership, convert SUPPORTED_SCOPES to list
5a2f133
to
464406a
Compare
00d189e
to
a82a883
Compare
I tried to refactor the tests and improve their naming. Please have another go at reviewing it. |
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.
Good job on the unit tests, they look much cleaner. I just gave 1 comment on coupling
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.
Good job!
Adds the library implementing https://github.com/canonical/charm-relation-interfaces/blob/main/interfaces/oauth/v0/README.md
TODO: