0

I want to secure an application which consists of the following;

  • angularjs frontend which sends requests to a
  • java resteasy backend web service which runs on wildfly

Both apps are running on distinct machines.

  • there is a third machine which has Keycloak on top of Wildfly.

I would like to do something like: 1. the user tries to access the frontend app and is redirected to the keycloak login page 2. after successful login, the token is returned to the angular fronted 3. the server will have access type as Bearer only and any request made from the frontend will have the token from step 2 provided

I want to know if this thing makes sense because i couldn`t find any tutorial that explains such an architecture and if so, what should i keep in mind?

Thank you.

1 Answer 1

2

You architecture makes sense and is a typical setup. You'll find AngularJS examples in the Keycloak distribution or in the project's github repo.

Sign up to request clarification or add additional context in comments.

1 Comment

Watch out, example provided in repo is for Angular 1.2. not working as it in 1.3+

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.