Vips
Vips

Reputation: 1

Angular JS Forgerock OIDC integration

We have to implement OAuth OIDC in Angular JS framework using Forgerock provided authentication mechanism. Before starting my questions are 1) Where the Authentication login/register screen will be dipslyed. Do we need to open it in iFrame or a popup window. 2) How it could be integrated in Angular JS, what all additional libraries would be required and/or if any sample code is available. 3) How to capture the jwt token once the authentication is complete.

Upvotes: 0

Views: 1162

Answers (1)

Gary Archer
Gary Archer

Reputation: 29243

  1. You will use ForgeRock's own login page - the most standard option is to redirect the whole page to ForgeRock

  2. Forgerock provide very good support for standards so you should be able to use any standards based library. I would recommend oidc client since it is mature and widely used.

  3. The login response will contain an authorization code which you can swap for tokens.

I have some resources on integrating SPAs and APIs with an Authorization Server and you should be able to follow the same concepts in AngularJS:

  1. Maybe run the SPA on my quick start page to understand the user experience for Open Id Connect based logins

  2. If you are new to this security model, have a look at my initial tutorial to understand the endpoints and messages used

Upvotes: 1

Related Questions