@meshmakers/shared-auth 0.0.0-0 → 2.0.2211-13005

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
2
- import { AuthorizeService } from './authorize.service';
3
- import * as i0 from "@angular/core";
4
- export declare class AuthorizeGuard implements CanActivate {
5
- private authorize;
6
- constructor(authorize: AuthorizeService);
7
- canActivate(_next: ActivatedRouteSnapshot, state: RouterStateSnapshot): any;
8
- private handleAuthorization;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeGuard, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeGuard>;
11
- }
1
+ import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
2
+ import { AuthorizeService } from './authorize.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AuthorizeGuard implements CanActivate {
5
+ private authorize;
6
+ constructor(authorize: AuthorizeService);
7
+ canActivate(_next: ActivatedRouteSnapshot, state: RouterStateSnapshot): any;
8
+ private handleAuthorization;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeGuard, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeGuard>;
11
+ }
@@ -1,15 +1,15 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { AuthorizeService } from './authorize.service';
4
- import * as i0 from "@angular/core";
5
- export declare class AuthorizeInterceptor implements HttpInterceptor {
6
- private authorize;
7
- accessToken: string;
8
- constructor(authorize: AuthorizeService);
9
- private static isSameOriginUrl;
10
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
11
- private processRequestWithToken;
12
- private isKnownServiceUri;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeInterceptor, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeInterceptor>;
15
- }
1
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { AuthorizeService } from './authorize.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AuthorizeInterceptor implements HttpInterceptor {
6
+ private authorize;
7
+ accessToken: string;
8
+ constructor(authorize: AuthorizeService);
9
+ private static isSameOriginUrl;
10
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
11
+ private processRequestWithToken;
12
+ private isKnownServiceUri;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeInterceptor, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeInterceptor>;
15
+ }
@@ -1,39 +1,39 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { OAuthService } from "angular-oauth2-oidc";
3
- import * as i0 from "@angular/core";
4
- export interface IUser {
5
- name: string;
6
- role: string;
7
- }
8
- export declare class AuthorizeOptions {
9
- wellKnownServiceUris: string[];
10
- issuer: string;
11
- redirectUri: string;
12
- postLogoutRedirectUri: string;
13
- clientId: string;
14
- scope: string;
15
- showDebugInformation: boolean;
16
- sessionChecksEnabled: boolean;
17
- }
18
- export declare class AuthorizeService {
19
- private authorizeOptions;
20
- private oauthService;
21
- private isAuthenticated;
22
- private isAdmin;
23
- private authority;
24
- private accessToken;
25
- private user;
26
- constructor(authorizeOptions: AuthorizeOptions, oauthService: OAuthService);
27
- getServiceUris(): Array<string>;
28
- getAuthority(): BehaviorSubject<string>;
29
- getIsAuthenticated(): BehaviorSubject<boolean>;
30
- getIsAdmin(): BehaviorSubject<boolean>;
31
- getAccessToken(): BehaviorSubject<string>;
32
- getUser(): BehaviorSubject<IUser>;
33
- login(): void;
34
- logout(): void;
35
- initialize(): void;
36
- private loadUser;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeService, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeService>;
39
- }
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { OAuthService } from "angular-oauth2-oidc";
3
+ import * as i0 from "@angular/core";
4
+ export interface IUser {
5
+ name: string;
6
+ role: string;
7
+ }
8
+ export declare class AuthorizeOptions {
9
+ wellKnownServiceUris: string[];
10
+ issuer: string;
11
+ redirectUri: string;
12
+ postLogoutRedirectUri: string;
13
+ clientId: string;
14
+ scope: string;
15
+ showDebugInformation: boolean;
16
+ sessionChecksEnabled: boolean;
17
+ }
18
+ export declare class AuthorizeService {
19
+ private authorizeOptions;
20
+ private oauthService;
21
+ private isAuthenticated;
22
+ private isAdmin;
23
+ private authority;
24
+ private accessToken;
25
+ private user;
26
+ constructor(authorizeOptions: AuthorizeOptions, oauthService: OAuthService);
27
+ getServiceUris(): Array<string>;
28
+ getAuthority(): BehaviorSubject<string>;
29
+ getIsAuthenticated(): BehaviorSubject<boolean>;
30
+ getIsAdmin(): BehaviorSubject<boolean>;
31
+ getAccessToken(): BehaviorSubject<string>;
32
+ getUser(): BehaviorSubject<IUser>;
33
+ login(): void;
34
+ logout(): void;
35
+ initialize(): void;
36
+ private loadUser;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizeService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizeService>;
39
+ }
@@ -1,17 +1,17 @@
1
- import { OnInit } from '@angular/core';
2
- import { AuthorizeService } from '../authorize.service';
3
- import { BehaviorSubject, Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class LoginMenuComponent implements OnInit {
6
- private authorizeService;
7
- isAuthenticated: BehaviorSubject<boolean>;
8
- userName: Observable<string>;
9
- isAdmin: Observable<boolean>;
10
- constructor(authorizeService: AuthorizeService);
11
- ngOnInit(): void;
12
- login(): void;
13
- logout(): void;
14
- register(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<LoginMenuComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginMenuComponent, "app-login-menu", never, {}, {}, never, never, false>;
17
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { AuthorizeService } from '../authorize.service';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LoginMenuComponent implements OnInit {
6
+ private authorizeService;
7
+ isAuthenticated: BehaviorSubject<boolean>;
8
+ userName: Observable<string>;
9
+ isAdmin: Observable<boolean>;
10
+ constructor(authorizeService: AuthorizeService);
11
+ ngOnInit(): void;
12
+ login(): void;
13
+ logout(): void;
14
+ register(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoginMenuComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginMenuComponent, "app-login-menu", never, {}, {}, never, never, false>;
17
+ }
@@ -1,13 +1,13 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { AuthorizeOptions } from "./authorize.service";
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./login-menu/login-menu.component";
5
- import * as i2 from "@angular/common";
6
- import * as i3 from "@angular/common/http";
7
- import * as i4 from "angular-oauth2-oidc";
8
- export declare class SharedAuthModule {
9
- static forRoot(authorizeOptions: AuthorizeOptions): ModuleWithProviders<SharedAuthModule>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedAuthModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedAuthModule, [typeof i1.LoginMenuComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.OAuthModule], [typeof i1.LoginMenuComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedAuthModule>;
13
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { AuthorizeOptions } from "./authorize.service";
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./login-menu/login-menu.component";
5
+ import * as i2 from "@angular/common";
6
+ import * as i3 from "@angular/common/http";
7
+ import * as i4 from "angular-oauth2-oidc";
8
+ export declare class SharedAuthModule {
9
+ static forRoot(authorizeOptions: AuthorizeOptions): ModuleWithProviders<SharedAuthModule>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedAuthModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedAuthModule, [typeof i1.LoginMenuComponent], [typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.OAuthModule], [typeof i1.LoginMenuComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedAuthModule>;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/shared-auth",
3
- "version": "0.0.0-0",
3
+ "version": "2.0.2211-13005",
4
4
  "dependencies": {
5
5
  "tslib": "^2.4.0"
6
6
  },
package/public-api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './lib/authorize.service';
2
- export * from './lib/login-menu/login-menu.component';
3
- export * from './lib/shared-auth.module';
4
- export * from './lib/authorize.interceptor';
5
- export * from './lib/authorize.guard';
1
+ export * from './lib/authorize.service';
2
+ export * from './lib/login-menu/login-menu.component';
3
+ export * from './lib/shared-auth.module';
4
+ export * from './lib/authorize.interceptor';
5
+ export * from './lib/authorize.guard';