Advice on new frontend (Angular SPA) #28
Unanswered
francescor
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you gone through the JSON section of the README? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we have a rails app with the following
and in
app/misc/rodauth_main.rb
which correctly login with SSO with Authentik (made with your help as in #25 )
Everything works perfectly.
We can still use the old authorization (LDAP with rodauth
app/misc/rodauth_ldap.rb
) which we want to remove.We have a working new frontend: an Angular Single Page Application, that talk to the Rails backend with API (swagger) and use JWT (with rodauth, of course): before enabling Oauth2, the Agular SPA ask for login/password, send it to the backend to receive an authorized JWT (and refresh it cyclically).
Now we want the new Augular fronted to use Authentik SSO, too.
Can you give us some tips on how to set this up?
We can easily enable SSO in the new Angular frontend, but then how does the rails backend know the frontend is authorized?
Beta Was this translation helpful? Give feedback.
All reactions