Supporting OAuth 2.1 and OpenId Connect 1.0
The following grant types are supported:
- Authorization Code
- Refresh Token
- Client Credentials
Take a look at authserver.dk.
Take a look at a demo client at webapp.authserver.dk. Take a look at a demo client a bff.authserver.dk. Take a look at the demo identity provider at idp.authserver.dk. Take a look at the demo protected resource at weather.authserver.dk.
The project relies on a SQLite database. It is constructed by running the ConfigurationApp commands.
Navigate to the Authorization/ConfigurationApp folder and run the new_database.ps1
script.
It will generate a new .sqlite database in the WebApp for AuthorizationServer with standard data.
Copy the file into the bin/Debug/net6.0 folder.
Run the Authorization/WebApp project by using dotnet run
command.
The new_database.ps1 script will setup initial data in a new .sqlite database. To dynamically create new data, the register endpoint can be used for clients.
There exist multiple clients, each support different scenarios.
Supporting the authorization code grant type and the refresh token grant type on a confidential web app.
Supporting the authorization code grant type and the refresh token grant type on a confidential api, which supports the backend for frontend pattern on the frontend app created using blazor webassembly.
Supporting the client credetials gran type on a confidential worker. It is illustrated by querying the token endpoint, and afterwards using the access token to query a protected resource for weather data.
There exist multiple resources.
Represents weather data.