Reputation: 1
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
Reputation: 29243
You will use ForgeRock's own login page - the most standard option is to redirect the whole page to ForgeRock
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.
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:
Maybe run the SPA on my quick start page to understand the user experience for Open Id Connect based logins
If you are new to this security model, have a look at my initial tutorial to understand the endpoints and messages used
Upvotes: 1