Library to provide OpenID Connect (OIDC) and OAuth2 protocol support for client-side, browser-based JavaScript client Angularjs applications. Also included is support for user session and access token management.
To install ngOidc use npm
npm install ng-oidc --save
Inject the $oidc
-provider to setup the library while configuring your angular-application
var app = angular.module('myApp', ['ngOidc'], function($oidc) {
$oidc.configure(
{
authority: 'http://....',
client_id: 'abcd...',
...
}
);
}
);
There is a sample in the sample
Folder.
Redirects the user to OpenId Page.
$oidc.signinRedirect();
Data Is A Function To Run For Event.
$oidc.addUserSignedOut(data);
npm start
and then browse to http://localhost:5000.
This library has been tested and intensively used with the IdentityServer4. Please see Thinktecture IdentityServer4 for further details.
Some initial docs are here.
All are welcome on the issue tracker.