Gathering detailed insights and metrics for angular-auth-oidc-client-pema
Gathering detailed insights and metrics for angular-auth-oidc-client-pema
Gathering detailed insights and metrics for angular-auth-oidc-client-pema
Gathering detailed insights and metrics for angular-auth-oidc-client-pema
npm package for OpenID Connect, OAuth Code Flow with PKCE, Refresh tokens, Implicit Flow
npm install angular-auth-oidc-client-pema
Typescript
Module System
Node Version
NPM Version
TypeScript (87.04%)
JavaScript (10.1%)
HTML (2.58%)
CSS (0.28%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,199 Stars
4,258 Commits
448 Forks
37 Watchers
11 Branches
92 Contributors
Updated on Jul 08, 2025
Latest Version
11.6.0
Package Id
angular-auth-oidc-client-pema@11.6.0
Unpacked Size
1.64 MB
Size
339.00 kB
File Count
612
NPM Version
6.14.6
Node Version
12.18.3
Cumulative downloads
Total Downloads
14
23
OpenID Code Flow with PKCE, Code Flow with refresh tokens, OpenID Connect Implicit Flow
This library is certified by OpenID Foundation. (RP Implicit and Config RP)
Navigate to the level of your package.json
and type
1 npm install angular-auth-oidc-client
or with yarn
1 yarn add angular-auth-oidc-client
For the example of the Code Flow. For further examples please check the Samples Section
Import the module and services in your module.
1import { HttpClientModule } from '@angular/common/http'; 2import { APP_INITIALIZER, NgModule } from '@angular/core'; 3import { AuthModule, LogLevel, OidcConfigService } from 'angular-auth-oidc-client'; 4// ... 5 6export function configureAuth(oidcConfigService: OidcConfigService) { 7 return () => 8 oidcConfigService.withConfig({ 9 stsServer: 'https://offeringsolutions-sts.azurewebsites.net', 10 redirectUrl: window.location.origin, 11 postLogoutRedirectUri: window.location.origin, 12 clientId: 'angularClient', 13 scope: 'openid profile email', 14 responseType: 'code', 15 silentRenew: true, 16 silentRenewUrl: `${window.location.origin}/silent-renew.html`, 17 logLevel: LogLevel.Debug, 18 }); 19} 20 21@NgModule({ 22 // ... 23 imports: [ 24 // ... 25 AuthModule.forRoot(), 26 ], 27 providers: [ 28 OidcConfigService, 29 { 30 provide: APP_INITIALIZER, 31 useFactory: configureAuth, 32 deps: [OidcConfigService], 33 multi: true, 34 }, 35 ], 36 // ... 37}) 38export class AppModule {}
And call the method checkAuth()
from your app.component.ts
1import { Component, OnDestroy, OnInit } from '@angular/core'; 2import { OidcClientNotification, OidcSecurityService, PublicConfiguration } from 'angular-auth-oidc-client'; 3import { Observable } from 'rxjs'; 4 5@Component({ 6 /**/ 7}) 8export class AppComponent implements OnInit { 9 constructor(public oidcSecurityService: OidcSecurityService) {} 10 11 ngOnInit() { 12 this.oidcSecurityService.checkAuth().subscribe((auth) => console.log('is authenticated', auth)); 13 } 14 15 login() { 16 this.oidcSecurityService.authorize(); 17 } 18 19 logout() { 20 this.oidcSecurityService.logoff(); 21 } 22}
You can get the access token by calling the method getToken()
on the OidcSecurityService
1const token = this.oidcSecurityService.getToken();
And then you can use it in the HttpHeaders
1import { HttpHeaders } from '@angular/common/http'; 2 3const token = this.oidcSecurityServices.getToken(); 4 5const httpOptions = { 6 headers: new HttpHeaders({ 7 Authorization: 'Bearer ' + token, 8 }), 9};
MIT
if you need information about version 10 please search here
https://github.com/damienbod/angular-auth-oidc-client/tree/version-10
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 8/14 approved changesets -- score normalized to 5
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year