openMF / web-app

Mifos X Web App is the revamped version of the Mifos X Community App built on top of the Fineract Platform leveraging the popular Angular framework.
https://openmf.github.io/web-app/
Mozilla Public License 2.0
230 stars 533 forks source link

How to config with Keycloak ? #1737

Closed daradonn closed 1 year ago

daradonn commented 1 year ago

I have enabled Oauth2 and I ready got accessToken from KeyCloak, how can I get loging using web app? Api using postman work greate but I don't know how to config with Web-App.

I am using apache fineract version 1.8.4 (port 8443), and keycloak version 21.0.2 (port 9000)

This below document not mention about web-app

https://github.com/apache/fineract/blob/develop/fineract-doc/src/docs/en/chapters/security/oauth.adoc

Please help, thank you.

daradonn commented 1 year ago

I have solved this issue if anyone want to check the code how to work with keycloak can check my code below. https://github.com/daradonn/web-app/tree/dev-keycloak

We have two options: Option 1: Overwrite authentication service, on login and refreshOAuthAccessToken function

Option 2: Using angular-oauth2-oidc 13.0.1

Thank you.

For backend setup keyclock -> https://github.com/apache/fineract/blob/develop/fineract-doc/src/docs/en/chapters/security/oauth.adoc