Skip to content
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

Refactoring OAuth2 service #428

Merged
merged 3 commits into from
Sep 16, 2022
Merged

Refactoring OAuth2 service #428

merged 3 commits into from
Sep 16, 2022

Conversation

evert
Copy link
Member

@evert evert commented Sep 12, 2022

This became a bit bigger than expected, but:

  • Refactors the OAuth2 service to have more consistent function signatures.
  • Adds token statistics to the oauth2 homepage.
  • Stores the 'grant_type' and whether a 'secret' was used in the tokens table.
  • We're now storing 'scope' for every token. This OAuth2 feature wasn't really used by this server, but this sets up the first steps for this.
  • Fixes a bug related to generating principal uris in the introspection endpoints.
  • Has more explicit support for the 2 a12nserver-specific oauth2 flows: "developer tokens" and "one-time-tokens".
  • Run sqlite migrations in github actions

Other side-effects of this PR:

This became a bit bigger than expected, but:

* Refactors the OAuth2 service to have more consistent function
  signatures.
* Adds token statistics to the oauth2 homepage.
* Stores the 'grant_type' and whether a 'secret' was used in the tokens
  table.
* We're now storing 'scope' for every token. This OAuth2 feature wasn't
  really used by this server, but this sets up the first steps for this.
* Fixes a bug related to generating principal uris in the introspection
  endpoints.
* Has more explicit support for the 2 a12nserver-specific oauth2 flows:
  "developer tokens" and "one-time-tokens".

Other side-effects of this PR:

* A few step furthers in #405
* Some progress towards OpenID Connect support (scopes are important for
  this).
@evert evert added the enhancement New feature or request label Sep 12, 2022
@evert evert self-assigned this Sep 12, 2022
Base automatically changed from auto-gen-mysql-types to main September 12, 2022 14:28
@evert evert merged commit 4a9c3be into main Sep 16, 2022
@evert evert deleted the token-metadata branch September 16, 2022 00:18
@evert evert mentioned this pull request Sep 18, 2022
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant