72°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Jeremy Fiel https://twitter.com/jeremyfiel   •   Jul 23
    Netlify @cassidoo @jlengstorf can help
    Aaron Parecki
    I have spent no joke like 4 hours trying to do this on @netlify already today and cannot for the life of me figure it out
    Portland, Oregon • 83°F
    Fri, Jul 23, 2021 3:21pm -07:00
    1 like 17 replies
    • Justin Richer
    • Jo Wouters twitter.com/jowouters
      No, don't think they have solved that yet... :-/ (I should have reread your original question completely "so that I can tie to an arbitrary OpenID Connect provider")
      Sun, Jul 25, 2021 8:49pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      Sounds promising, but I still can't quite see all the pieces. Maybe we should do another livestream and tackle this live!
      Sat, Jul 24, 2021 12:21am +00:00 (via brid.gy)
    • Jason Lengstorf twitter.com/jlengstorf
      you could redirect through a serverless function to validate. JWT is probably easier since you'll presumably already have that through whatever service you're using for user management
      Sat, Jul 24, 2021 12:10am +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      how can I validate the contents of that cookie? From what I can tell in the docs the redirect method just checks for the presence of the cookie
      Fri, Jul 23, 2021 11:30pm +00:00 (via brid.gy)
    • Jason Lengstorf twitter.com/jlengstorf
      but if you’re looking for a cookie, you can check for that in the redirect and send to auth if it’s not present the cookie redirect could be: /* /:splat 200! Cookie=your_cookie /* /login login could call a serverless function to set the cookie
      Fri, Jul 23, 2021 11:03pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      That's promising, but can I use an external OpenID Connect IDP for that? I don't want to manage users in Netlify
      Fri, Jul 23, 2021 11:03pm +00:00 (via brid.gy)
    • Jo Wouters twitter.com/jowouters
      In that case you could move the whole static site to a specific directory that is protected via a _redirects definition ? Access is only granted to a specific role. docs.netlify.com/visitor-access… Roles can be set via Identity
      Fri, Jul 23, 2021 11:02pm +00:00 (via brid.gy)
    • Jason Lengstorf twitter.com/jlengstorf
      you can do user stuff without plugging into Netlify Identity. the important part is the app_metadata.roles in the token
      Fri, Jul 23, 2021 10:57pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      I'm still a little confused about Netlify Identity, but it seems like it requires that I manage users in Netlify, which isn't what I want. Also wow the pricing 😮 $99/month/user in order to be able to use third party JWT tokens?
      Fri, Jul 23, 2021 10:55pm +00:00 (via brid.gy)
    • Jason Lengstorf twitter.com/jlengstorf
      yeah, that definitely works! here’s some code to change roles if you need to, but in general Netlify Identity / roles will definitely let you gate content github.com/stripe-samples…
      Fri, Jul 23, 2021 10:52pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      I followed a few links from there and it looks like possibly this is the answer? docs.netlify.com/visitor-access…
      Fri, Jul 23, 2021 10:40pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      That won't work, I need to prevent access to the files entirely if the user isn't logged in.
      Fri, Jul 23, 2021 10:37pm +00:00 (via brid.gy)
    • Jo Wouters twitter.com/jowouters
      Have you tried Snippet Injection? docs.netlify.com/site-deploys/p… You could inject the Identity code in your static code identity.netlify.com
      Fri, Jul 23, 2021 10:35pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      Ideally I'd have something like a Netlify function run on every incoming request to check the presence of a cookie, validate it, and based on the result, either send an HTTP redirect to start an OIDC flow, or return the static file requested.
      Fri, Jul 23, 2021 10:32pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      It's a static site, so it's a pile of files. I can push those files around as much as I want, but changing them is not really feasible
      Fri, Jul 23, 2021 10:29pm +00:00 (via brid.gy)
    • Jason Lengstorf twitter.com/jlengstorf
      can you say more about what the ideal workflow is? if you can set a cookie, you can allow/deny access based on cookie presence docs.netlify.com/routing/redire…
      Fri, Jul 23, 2021 10:28pm +00:00 (via brid.gy)
    • Jeremy Fiel twitter.com/jeremyfiel
      If you can't modify it, how do you have access to deploy it somewhere else?
      Fri, Jul 23, 2021 10:28pm +00:00 (via brid.gy)
Posted in /replies using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv