Fork me on GitHub
#shadow-cljs
<
2022-05-22
>
raymcdermott16:05:31

I have an integration in my SPA with a 3rd party security provider (OKTA) which makes a callback on localhost:8000/login/callback?blah=blahdeblah

raymcdermott16:05:10

how does shadow resolve this? It does and it's very nice, just interested in the mechanisms for how to set up my actual server 🙂

thheller18:05:36

the server just needs to send the regular "index.html" content you'd get on localhost:8000. I assume you have the CLJS routing setup to handle the rest?

1
raymcdermott18:05:38

yes, I have the CLJS routing set up to work

raymcdermott18:05:19

It's what I understood and I'm failing to get it set up on an S3 bucket behind cloudfront so probably just some more JSON somewhere 🤞:skin-tone-3:

raymcdermott18:05:55

They do support redirects but tracing the behaviour is “fun”

raymcdermott19:05:40

turns out that cloudfront allows me to return index.html for 403 errors and change the code to 200. So it's all working.