Skip to content

feat: add support for custom scopes (#262)#263

Merged
svenjacobs merged 4 commits intosvenjacobs:mainfrom
adepto-io:feature/custom-scopes
Jan 26, 2026
Merged

feat: add support for custom scopes (#262)#263
svenjacobs merged 4 commits intosvenjacobs:mainfrom
adepto-io:feature/custom-scopes

Conversation

@adepto-io
Copy link
Contributor

Description

This PR addresses #262 by refactoring the Scope implementation to support arbitrary scope strings.

The previous enum class was too restrictive for modern OIDC/OAuth2 requirements, where custom API scopes (e.g., api://my-custom-scope) are frequently necessary. Moving to a sealed class keeps the standard OIDC scopes easy to use while allowing for custom scope strings.

Changes

  • Refactored Scope: Converted from an enum to a sealed class.
  • Custom Scopes: Introduced Scope.Custom(value: String) to support arbitrary scope strings.

@adepto-io adepto-io requested a review from svenjacobs as a code owner January 23, 2026 20:53
@svenjacobs
Copy link
Owner

svenjacobs commented Jan 25, 2026

Can you please fix the code formatting with ./gradlew spotlessApply?

Copy link
Owner

@svenjacobs svenjacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@svenjacobs svenjacobs merged commit 0d7f279 into svenjacobs:main Jan 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants