Skip to content

m4gshm/traefik-oauth2-proxy-keycloak-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traefik-oauth2-proxy-keycloak-auth

Traefik + oauth2-proxy + keycloak authentification example.

Preconditions

Need to install Docker or Podman and docker-compose.

How to start

  1. run docker-compose up keycloak
  2. open http://localhost:8082 in a broswer
  3. login to the keycloak using name admin and password admin
  4. create oauth2-proxy client with options:
    • Client authentication: On
    • Valid redirect URIs: *
  5. copy the Client Secret value from the page Credentials to the property client_secret in the file oauth2-proxy/config.toml
  6. create user with parameters:
    • Email verified: Yes
    • Username: traefik
    • Email: traefik@traefik.traefik
    • First name: traefik
    • Last name: traefik
  7. set password on the page Credentials of the user:
    • Password: traefik
    • Password Confirmation: traefik
    • Temporary: Off
  8. run docker compose stop
  9. run docker compose up
  10. wait for all services to start
  11. open http://localhost:7070/bearer in the browser
  12. sign in using username traefik and password traefik
  13. you should see json response with parameter authenticated=true and token that can be parsed at https://jwt.io

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published