mauriciovigolo / keycloak-angular

Easy Keycloak setup for Angular applications.
MIT License
725 stars 278 forks source link

no provider when integrating keycloak with angular7 #130

Closed arratejasvi closed 5 years ago

arratejasvi commented 5 years ago

I am trying to integrate keycloak with angular7 so that SSO works with standard Authorization code flow and to call the keycloak login when the angular application loads and redirect to angular with authorization code and get access_token,refresh_tokens .What exactly I need to do to make it work? I have searched for many references and sample code none of them are clear .

Tried the way that is described in this link, https://www.npmjs.com/package/keycloak-angular Giving an error "There is no provider for keycloak".

Thanks tejasvi

mauriciovigolo commented 5 years ago

Hi @arratejasvi, did you import the KeycloakAngularModule?

arratejasvi commented 5 years ago

Hi Mauricio Yes ,I did import the KeycloakAngularModule. This is working now when I added the keycloak.js in index.html file.Thank you for responding.

On Tue, May 7, 2019 at 5:17 AM Mauricio Gemelli Vigolo < notifications@github.com> wrote:

Hi @arratejasvi https://github.com/arratejasvi, did you import the KeycloakAngularModule?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mauriciovigolo/keycloak-angular/issues/130#issuecomment-490022705, or mute the thread https://github.com/notifications/unsubscribe-auth/AHYF2WONTR3CTMDHTVLGQWDPUFJMBANCNFSM4HIR5WLQ .

marcelnem commented 5 years ago

@mauriciovigolo I believe this can be closed. It works for the OP.

mauriciovigolo commented 5 years ago

thanks @marcelnem