Single Sign On With OAuth2.0 - Authentik Is AWESOME!

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ •

  • @bluesquadron593
    @bluesquadron593 Рік тому +18

    Awesome content and superb channel!

  • @alisawongsawat3979
    @alisawongsawat3979 Рік тому +6

    I am loving it. Thank you for pushing me to improve my home lab!

  • @monish05m
    @monish05m Рік тому +4

    using authentik for over an year now, I can say this with confidence that it is awesome, functional, and logical. all with great support and pretty UI.

    • @Jims-Garage
      @Jims-Garage  Рік тому

      Awesome, I agree - it's a great tool!

  • @accesser
    @accesser Рік тому +3

    Great job researching this and then presenting in a clear way, this looks like a fun thing to tinker with

  • @DarrylGibbs
    @DarrylGibbs Рік тому +2

    Ah man!!!! Your guide is amazing! I just managed to get my Immich instance behind Oauth!! Dude, you're amazing!! Not to mention I've now learnt HOW to learn from Authentiks documentation.

    • @Jims-Garage
      @Jims-Garage  Рік тому

      You're most welcome, good job 👍

  • @bertocross
    @bertocross Рік тому +7

    A big thank you for giving me loads of inspiration and lots of new projects to undertake in my homelab. I'm currently in the process of migrating from nginx proxy manager to traefik. Keep up the excellent work, I really enjoy your videos. I'm looking forward to the next authentik episode. 👍

    • @Jims-Garage
      @Jims-Garage  Рік тому

      Thanks for the feedback, really appreciate it.

  • @draukuxan1081
    @draukuxan1081 Рік тому +2

    Thanks for another fantastic video! This and the next Authentik video on your channel are my projects for today. I've been using Auth0 for years, and have been wanting to switch to Authentik for a while now.
    One suggestion for your videos: please leave the pop-up/clarification text on the screen for a little bit longer than you did for the "workers" blurb at 4:10 as I had to back up and pause to read it.

  • @chrisumali9841
    @chrisumali9841 Рік тому +2

    Thanks for the demo and info, have a great day

  • @PeterBatah
    @PeterBatah Рік тому +2

    Clear and precise. Thank you for sharing your time and experience with us. I must be the only one having trouble logging into Portainer. After clicking on Login with OAuth I see the Portainer logo / Log in to your account / Welcome back! Please enter your details / Authentication in progress / Spinning gear / I am taken back to the login screen / Unable to login via OAuth. Running in a Docker Proxmox VM

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      Thanks. Be sure to check all of the URLs in the redirection journey. If you're still stuck hop onto Discord - lots of people to help.

    • @PeterBatah
      @PeterBatah Рік тому +1

      Thanks so much for the prompt response. I created a new Debian 11 Proxmox container and went through the entire setup again. Everything is working as it should. I suspect that my versions of Docker and Portainer may have well been outdated. Have an awesome evening.@@Jims-Garage

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      @@PeterBatah great to hear. A strange issue!

  • @hasanerken9604
    @hasanerken9604 Рік тому +1

    Fantastic explanation, please continue with all capabilities of Authentik

    • @Jims-Garage
      @Jims-Garage  Рік тому

      Thanks. I did a follow up for web proxies.

    • @hasanerken9604
      @hasanerken9604 Рік тому +1

      Now I am watching it. Awesome guidance. thanks@@Jims-Garage

  • @skinwalker_
    @skinwalker_ 7 місяців тому +1

    Your videos are so good they deserve more likes and shares than they have. I guess we are a specilaized group of people. Thank you for these videos they are really helpful and appreciated.

    • @Jims-Garage
      @Jims-Garage  7 місяців тому

      Thanks, really appreciate the feedback

  • @MacJFitness
    @MacJFitness 7 місяців тому +1

    Thanks a lot for this guide! I set this up earlier watching another video and could not get the OAuth to work with Portainer. After I added the middleware you specified to the traefik config file and the labels to the compose file everything worked as expected!

    • @Jims-Garage
      @Jims-Garage  7 місяців тому

      Great, good to hear that

  • @crc_code
    @crc_code Рік тому +4

    Thank you so much for sharing this information with us..this is a great video as always ❤❤❤

  • @dmbrv
    @dmbrv Рік тому +2

    Very nice explanation. Thanks a lot for the video.

  • @henrysowell
    @henrysowell 10 місяців тому +1

    Thanks Jim! Great video

    • @Jims-Garage
      @Jims-Garage  10 місяців тому

      Appreciate the feedback ☺️

  • @Iahmel.
    @Iahmel. Рік тому +1

    Looking forward to more content on Authentik. It's an awesome product and very capable of many things, although finding good examples and guidance for someone who isn't a devops guy is difficult.

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      Thanks, make sure to check out my follow up with web proxies (like Authelia).

  • @cybr774
    @cybr774 Рік тому +8

    Now a video about Keycloak would be quite fitting + a video comparing Authelia, Authentik and Keycloak😁

    • @Jims-Garage
      @Jims-Garage  Рік тому +2

      Thanks, it's on the list! :D My goal is to start off with simpler things and move onto the more Enterprise stuff (hence Authelia -> Authentik -> Keycloak).

    • @cybr774
      @cybr774 Рік тому +1

      @@Jims-Garage Awesome to hear, keep up the great work!

  • @BoKKeR111
    @BoKKeR111 Рік тому +1

    Thanks for this great content! For me portainer created the user properly. No issues at all

  • @drbyte2009
    @drbyte2009 8 місяців тому +1

    Nice video Jim, i would love to see a video to secure selfhosting in the combination Authentik / Traefik

    • @Jims-Garage
      @Jims-Garage  8 місяців тому

      Thanks, can you explain what you mean? You can plug your apps into Authentik as demoed.

    • @drbyte2009
      @drbyte2009 8 місяців тому

      @@Jims-Garage I recently setup Traefik 3.0 in a demo environment, in combination with PiHole as a DNS server.
      I want to acces some local hosted websites / apps with Authentik

  •  3 місяці тому

    Great Video! Would you please make a video what to do with the combination nginx-proxy-manager (runs allready) and authentik? Thanks!

  • @larsskage5584
    @larsskage5584 8 місяців тому +1

    Great video!
    Exactly what I have been looking for. At 8:10 you mention using a proper domain. My initial setup was wo port forwarding and only using pihole as my internal ens with all fqdn pointing to the nginx proxy manager. The issue is portainer can not resolve the name. It will work if I add the auth fqdn and point it to my public ip and port forward to nginx but I would rather knep it all internal. Is this setup impossible? TIA /lars

    • @Jims-Garage
      @Jims-Garage  8 місяців тому

      Ofc, follow my Traefik video. That uses a DNS challenge which doesn't require any port forwarding.

  • @thieuson
    @thieuson Рік тому +2

    Very useful, thank you

  • @HunterGeophysicsAustralia
    @HunterGeophysicsAustralia 5 місяців тому

    Another great video; thanks, Jim.
    Just FYI, at 16:30, upon logging out of Portainer, I was redirected to an Authentik page instead of the Portainer log-in screen. Logging out of Authentik at this point, and then logging back into Authentik again, and then logging in and logging out of Portainer seemed to fix it, even though the URL was set as you've done in your video.
    By the way, is there a way to fire off a test email to ensure the Authentik email settings are correct and all is working properly?
    Thanks again.

  • @mrtreehugger4259
    @mrtreehugger4259 Рік тому +1

    Thank you very much! Maybe you could also take a look at Zitadel?

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      You're welcome 😁 Yes, it's on the list. It looks promising.

  • @PeterBatah
    @PeterBatah Рік тому +1

    Hello again Jim. At approximately 11:38 you state that you can have a single provider for many applications (one to many). Are you sure about that? I have attempted to do so and get the following error message: Application with this provider already exists.

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      Thanks, I should have been clearer. From the official docs: "Starting with authentik 2023.5, applications can use multiple providers, to augment the functionality of the main provider".

    • @PeterBatah
      @PeterBatah Рік тому +1

      My apologies Jim. I should have mentioned that I was using Authentik version 2023.8.3@@Jims-Garage

  • @RealEstate3D
    @RealEstate3D 5 місяців тому +2

    Basically the outcome is that I have now either:
    1) a working Authentik on an unsecured IP connection on port 7000 .... OR ...
    2) a 504 Gateway Time-out error from openresty.
    First time I saw a video by Jim. Very likeable. To be fair ... Jim said in the video that he wouldn't recommend going with an IP himself. But that exactly is what he is doing here. My fault, I guess.

    • @Jims-Garage
      @Jims-Garage  5 місяців тому

      @@RealEstate3D I'll upload the compose with Traefik labels shortly to the same repo

    • @Jims-Garage
      @Jims-Garage  5 місяців тому +1

      Now added: I've just added a Treafik labels version to my Authentik repo. github.com/JamesTurland/JimsGarage/tree/main/Authentik

    • @RealEstate3D
      @RealEstate3D 5 місяців тому

      @@Jims-Garage That’s nice 🙂Unfortunately I kicked out traefik and replaced it with node-proxy-manager 🤨🔫

    • @BerserkeR_031
      @BerserkeR_031 Місяць тому

      @@RealEstate3D L

  • @fulesmackofule
    @fulesmackofule Рік тому +1

    Awesome! But what happens after 16:52? No password asked? It just gets in Portainer?
    Too bad all other applications I run for my home lab need password through either pop-up or form...

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      It's because I'm using the same account as I'm currently logged into Authentik with.

  • @johnackelley
    @johnackelley 2 місяці тому

    I had set authentik up with single application forward auth proxies for the providers for each application to communicate with an nginx reverse proxy setup. I'm trying to switch to OAuth2 OIDC, but get a 404 if I use anything other than the local IP. I don't have my ports exposed on the public IP/domain since I'm using a reverse proxy instead. I can't seem to figure out how to get the proxy outpost in Authentik to work with the OAuth2 providers.

  • @alfonce7613
    @alfonce7613 6 місяців тому +1

    Thanks Jim loving this series. Question are you able to change the internal listening ports of container without exposing? I.e if youre trying to route a container through a reverse proxy but you have a port conflict with another app is there a way to tell the app to listen on another port without defining a "ports" section and exposing ports?

    • @Jims-Garage
      @Jims-Garage  6 місяців тому +1

      Yes, you can use the loadbalancer to change the port (e.g. grafana on port 443 loadbalanced to 3000).

    • @alfonce7613
      @alfonce7613 6 місяців тому

      ​@@Jims-Garage Cheers - yeah okay what i didnt understand was that if im not exposing ports to the host i can for example use traefik to resolve multiple containers all listening on the same port because they are on their own individual IPs. I had an instance where portainer and authentik containers were both listening on the same port.. took me way too long to work out i can set the load balancer to the same port for both and traefik will just handle it XD

  • @fedefede843
    @fedefede843 Рік тому +3

    Hi, so you need to do the same for each app right? And those apps need to support this (auth2), correct?

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      Correct, otherwise choose a proxy provider which will behave like Authelia instead.

  • @javiesteban4510
    @javiesteban4510 Рік тому +2

    one question, You're docker machine is standalone or is installed on proxmox? All of your docker compose are in the same docker machine? If it's proxmox use all the hdd size in this docker machine? best Regards and thanks for all your videos

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      The machine I'm using in my videos is a standalone VM on Proxmox, it's a replica of what I used to use (hence why it's the homelab journey). I now use Kubernetes, which is what we'll get onto later in the series.
      For the docker host I used to have, there was a single 512GB nvme drive with a TrueNAS samba share mounted to it for media and backups.

    • @javiesteban4510
      @javiesteban4510 Рік тому +1

      @@Jims-Garage Thanks, related to the TrueNAS server, which the cpu and memory you're using? Thnks

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      @@javiesteban4510 I'm using a Pentium G4560 (yes, it's ancient), with 32GB of Samsung ECC memory

  • @andoniortiz4774
    @andoniortiz4774 Рік тому +1

    Gracias por compartir!

  • @RiffyDevine
    @RiffyDevine 4 місяці тому +1

    I am already using a redis in my traefik container for traefik-kop. Can it share the redis or do I need to set them to different ones?

    • @Jims-Garage
      @Jims-Garage  4 місяці тому

      @@RiffyDevine I believe it can be shared but not sure about configuration

  • @Dros34
    @Dros34 5 місяців тому +1

    For SAML based auth is there a mobile app you install that will push the SSO/SAML request to your phone? Much like the way DUO works for example.

    • @Jims-Garage
      @Jims-Garage  5 місяців тому

      @@Dros34 I think you're referring to MFA?

    • @Dros34
      @Dros34 5 місяців тому

      @@Jims-Garageyes, like an authentik mfa app. I’m just looking into this authentik doesn’t it do mfa? It’s basically like a free version of DUO, RSA, Okta etc. btw great channel. Really like your videos.

  • @senj3ru
    @senj3ru 7 місяців тому

    and in the future, if you need to update postgres to a newer version, what is the correct way to do this?

  • @omerta3393
    @omerta3393 6 місяців тому +1

    I followed your instructions and it is now up and running going dorward to put Prometheus behind it

  • @planeetpaul
    @planeetpaul 9 місяців тому +1

    Hi Jim, I am looking for a solution which I can use for my homelab apps but also for my WordPress websites members area. Is it possible to integrate Authelia or Authentik into my WordPress site?

    • @Jims-Garage
      @Jims-Garage  9 місяців тому

      Yes, web proxy should do it.

  • @DesertCookie
    @DesertCookie 10 місяців тому +2

    I am stuck on the initial setup. It won't redirect me after I have entered my details. The logs don't show anything special either; just a regular API request is logged.
    Edit: I had to use the HTTPs port. The HTTP port does not work for this.
    Edit 2: Firefox doesn't work with parts of the UI. I recommend a Chromium-based browser.

    • @Jims-Garage
      @Jims-Garage  10 місяців тому +1

      Glad it's working. Likely because the Traefik proxy is set to redirect to HTTPS

  • @zippi777
    @zippi777 Місяць тому +1

    Hi Jim i did it but a question: in the .env file i change the PG_PASS=password with another password but do I have to change it somewhere else too?
    Because changing the password only here doesn't work anymore! Thank you

    • @Jims-Garage
      @Jims-Garage  Місяць тому +1

      @@zippi777 that changes the postgres password, so you then need to add it to the Authentik container so it uses the same password.

    • @zippi777
      @zippi777 Місяць тому

      @@Jims-Garage OK, forgive me I'm a noob, I have to change it here: POSTGRES_PASSWORD: ${PG_PASS:?database password required} I have to replace the writing: ?database password required -
      I don't know what the correct syntax is

    • @zippi777
      @zippi777 Місяць тому

      @@Jims-Garage Please help me how can i add it to the Authentik container so it uses the same password?

  • @HenricLilliehöök
    @HenricLilliehöök 10 місяців тому +1

    Your docker-compose file on github doesn't work with newer images it seems...

    • @Jims-Garage
      @Jims-Garage  10 місяців тому

      Thanks, I'll investigate when I have time. Please submit a pr if you have a working one.

  • @张伟平-m9q
    @张伟平-m9q 9 місяців тому

    how to install not by docker do it by bare install way?

  • @radhiyahwilliams829
    @radhiyahwilliams829 8 місяців тому

    Hi, Has anyone managed to setup authentik with a angular project?

  • @张伟平-m9q
    @张伟平-m9q 8 місяців тому

    如何使用用户的 id作为唯一键 该如何配置呢

  • @abessesmahi4888
    @abessesmahi4888 Рік тому +2

    Thank you for this great content, and please mute the music during the tutorial because its disturbing.

    • @Jims-Garage
      @Jims-Garage  Рік тому +1

      Thanks, will take that into consideration.

  • @michaelventarola7100
    @michaelventarola7100 Рік тому +1

    What is better? This or Keycloak?

    • @Jims-Garage
      @Jims-Garage  Рік тому

      For homelab I would go for Authentik as it has a proxy. For enterprise and OAuth it's keycloak all the way

  • @pmlstk
    @pmlstk Рік тому +1

    how do i enable https for authentik?

    • @Jims-Garage
      @Jims-Garage  Рік тому

      Check my follow up video on Authentik, I've added the Traefik labels necessary.

  • @cyberjohn44
    @cyberjohn44 Рік тому +1

    Does it support 2FA with SSO?

  • @TechySpeaking
    @TechySpeaking 2 місяці тому +1

    first

  • @bradfordjns
    @bradfordjns 10 місяців тому +1

    Great video ! The files and video has gotten me set up with Authentik on my Docker server working great with openid and the proxy auth. I have also been migrating my services to my K3S cluster, have you managed to set this up in Kubernetes with a deployment.yaml and a traefik ingress.yaml?

    • @Jims-Garage
      @Jims-Garage  10 місяців тому +1

      Yes, I did a livestream that's available showing how (without Traefik but it's simple to do). I will do it in Kubernetes at a later time

    • @bradfordjns
      @bradfordjns 10 місяців тому +1

      Thanks @@Jims-Garage for the quick reply, I just found your video and I working through it now.