Skip to content

thinktecture-labs/webinar-keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for Keycloak Integration in ASP.NET Core and Angular.

Start

Use

docker-compose up

to start Keycloak, the API and Angular Frontend.

Urls

System Url
Keycloak http://localhost:8080
API http://localhost:5000
Frontend http://localhost:4200

Logins

Username Password Description
editor editor Can create posts and delete not published posts
publisher publisher Can publish and unpublish posts
legal lega Can unpublish posts

Point of interest

API

File Description
startup.cs Configures Jwt Bearer authentication to use Keycloak
KeycloakRolesClaimsTransformation.cs Transforms keycloak role claims to be compatible with ASP.NET
startup.cs Configures authorization with Keycloak
KeycloakAuthorization\KeycloakAuthorizationHandler.cs Authorization handler that makes decision call to Keycloak

Frontend

File Description
keycloakAuthorization.service.ts Authorization Service that makes decision call to Keycloak.
security.service.ts Security service that checks the roles of the user.
auth.guard.ts Auth guard to protect routes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •