Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Sormas-Angular with Sormas Keycloak & Sormas API backend #4

Closed
alexandrudanpop opened this issue Jan 4, 2021 · 3 comments · Fixed by #18
Closed

Integrate Sormas-Angular with Sormas Keycloak & Sormas API backend #4

alexandrudanpop opened this issue Jan 4, 2021 · 3 comments · Fixed by #18
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@alexandrudanpop
Copy link
Contributor

Integration

Please take a look at https://github.com/hzi-braunschweig/SORMAS-Angular#auth-with-keycloak

Configuration

We should be able to configure Keyclaok with a new Client for the Angular app:
Client ID: sormas-angular
Client Protocol: openid-connect
Root URL: http://localhost:4200/
Extra scopes to call the Sormas API

Upon login, Angular app can call the Sormas API

The angular client needs to be adjusted to make a sample call to the Sormas API

@alexandrudanpop alexandrudanpop added the enhancement New feature or request label Jan 4, 2021
@alexandrudanpop alexandrudanpop self-assigned this Jan 18, 2021
@alexandrudanpop alexandrudanpop changed the title Integrate Sormas-Angular with Sormas Keycloak & Sormas API backend (BE) Integrate Sormas-Angular with Sormas Keycloak & Sormas API backend Jan 19, 2021
@alexandrudanpop
Copy link
Contributor Author

alexandrudanpop commented Jan 19, 2021

An update on this - currently we need to investigate if Bearer tokens work in the Sormas Rest project. Some initial investigation proves there is code that handles this but there is no concrete example of Bearer tokens generated by Keycloak that work.

Until we have this we will use some basic auth to connect Sormas Angular to the Sormas Rest API.
We will still provide:

  • Some docs for easily configuring Keycloak for the new Angular application

@alexandrudanpop alexandrudanpop linked a pull request Jan 20, 2021 that will close this issue
@alexandrudanpop alexandrudanpop pinned this issue Jan 28, 2021
@alexandrudanpop
Copy link
Contributor Author

Updates to our initial investigation - the docker-compose was missing some variables to configure Sormas to work with Keycloak.

@vidi42 is helping us with this. At this point, Keycloak + Sormas work but Basic Auth & JWT Auth are rejected by Sormas-Rest.

@alexandrudanpop alexandrudanpop added the help wanted Extra attention is needed label Jan 29, 2021
@alexandrudanpop
Copy link
Contributor Author

A POC of the Angular+ Keycloak + Sormas-Rest is now done.

We can use the test-de1.sormas.netzlink.com as a backend for now - as the local docker-compose file still needs work and we should probably do this in a separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant