OpenIdDict 1 (16.12.2022 M) Flashcards
(7 cards)
Name four stores that OpenIdDict has.
They are Application, Authorization, Scope, Token.
What does the Application table contain?
It contains information about clients and their configuration.
What does the Authorization table contain?
It contains information about authorization attempts, which are associated with the Application.
What does the Token table contain?
It contains issued tokens, which are associated with Authorization and Application.
What does the Scope table contain?
It contains information about scopes.
What does UseOpenIddict() call make?
It hooks ModelBuilder of DbContext via IModelCustomizer in order to put Application, Authorization, Scope, and Token models configuration.
What does services.AddOpenIddict() call make?
It just creates the instance of OpenIddictBuilder. Which, by the way, contains only IServicesCollection property. And when you further configure OpenIdDict you just call extension methods, which register some services in it.