Skip to content

Add support for token scoping via TokenIdentifier#5

Open
jsiegmund wants to merge 7 commits into
mainfrom
feature/multiple-tokens
Open

Add support for token scoping via TokenIdentifier#5
jsiegmund wants to merge 7 commits into
mainfrom
feature/multiple-tokens

Conversation

@jsiegmund

Copy link
Copy Markdown
Member

Introduced TokenIdentifier to enable scoped token management:

  • Added TokenIdentifier to Azure, File System, and EF Core options.
  • Updated constructors to accept optional TokenIdentifier.
  • Refactored Azure Blob and File System paths for scoping.
  • Enhanced memory cache keys to include TokenIdentifier.
  • Updated EF Core queries and schema to support TokenIdentifier.
  • Added unique index for TokenIdentifier in the database.

Improved DI support with new extension methods:

  • Added methods for registering token storage with TokenIdentifier.
  • Supported keyed service registration for scoped lifetimes.

Bumped project version to 0.0.1-preview-02.

Introduced TokenIdentifier to enable scoped token management:
- Added TokenIdentifier to Azure, File System, and EF Core options.
- Updated constructors to accept optional TokenIdentifier.
- Refactored Azure Blob and File System paths for scoping.
- Enhanced memory cache keys to include TokenIdentifier.
- Updated EF Core queries and schema to support TokenIdentifier.
- Added unique index for TokenIdentifier in the database.

Improved DI support with new extension methods:
- Added methods for registering token storage with TokenIdentifier.
- Supported keyed service registration for scoped lifetimes.

Bumped project version to 0.0.1-preview-02.
Comment thread src/Alfa1.TokenStorage.FileSystem/FileSystemTokenStorageService.cs Fixed
jsiegmund added 6 commits May 19, 2026 17:31
Replaced automatic table creation during DI registration with a new
`InitializeTokenStorageSqlServer` method for explicit schema
initialization during app startup.

Removed the `EnsureTokenTableExists` method as its functionality is
now handled by the new initialization method.

Updated `Directory.Build.Props` to bump version to
`0.0.1-preview-05`.

Updated `README.md` to document the new initialization process and
provide usage examples.
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.

1 participant