@rxap/ngx-oauth2-proxy 19.0.2-dev.1 → 19.0.2-dev.2
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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +5 -0
- package/compodoc/dependencies.html +2 -2
- package/compodoc/index.html +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +4289 -0
- package/docs/html/.nojekyll +1 -0
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/html/assets/highlight.css +43 -0
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/html/assets/main.js +60 -0
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/GetOauth2ProxyUserProfileMethod.html +3 -0
- package/docs/html/classes/Oauth2ProxyUserProfileDataSource.html +75 -0
- package/docs/html/functions/oauth2ProxyGuard.html +1 -0
- package/docs/html/functions/provideOauth2Proxy.html +1 -0
- package/docs/html/functions/subscribeToLogoutEvent.html +1 -0
- package/docs/html/index.html +34 -0
- package/docs/html/interfaces/Oauth2ProxyUserProfile.html +5 -0
- package/docs/html/modules.html +1 -0
- package/docs/markdown/README.md +39 -0
- package/docs/markdown/classes/GetOauth2ProxyUserProfileMethod.md +39 -0
- package/docs/markdown/classes/Oauth2ProxyUserProfileDataSource.md +944 -0
- package/docs/markdown/functions/oauth2ProxyGuard.md +25 -0
- package/docs/markdown/functions/provideOauth2Proxy.md +15 -0
- package/docs/markdown/functions/subscribeToLogoutEvent.md +25 -0
- package/docs/markdown/globals.md +20 -0
- package/docs/markdown/interfaces/Oauth2ProxyUserProfile.md +29 -0
- package/docs/wiki/Class.GetOauth2ProxyUserProfileMethod.md +35 -0
- package/docs/wiki/Class.Oauth2ProxyUserProfileDataSource.md +940 -0
- package/docs/wiki/Function.oauth2ProxyGuard.md +21 -0
- package/docs/wiki/Function.provideOauth2Proxy.md +11 -0
- package/docs/wiki/Function.subscribeToLogoutEvent.md +21 -0
- package/docs/wiki/Home.md +35 -0
- package/docs/wiki/Interface.Oauth2ProxyUserProfile.md +25 -0
- package/docs/wiki/_Sidebar.md +16 -0
- package/docs/wiki/globals.md +16 -0
- package/package.json +6 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/ngx-oauth2-proxy](../wiki/globals) / oauth2ProxyGuard
|
|
2
|
+
|
|
3
|
+
# Function: oauth2ProxyGuard()
|
|
4
|
+
|
|
5
|
+
> **oauth2ProxyGuard**(`route`, `state`): `MaybeAsync`\<`GuardResult`\>
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### route
|
|
12
|
+
|
|
13
|
+
`ActivatedRouteSnapshot`
|
|
14
|
+
|
|
15
|
+
### state
|
|
16
|
+
|
|
17
|
+
`RouterStateSnapshot`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`MaybeAsync`\<`GuardResult`\>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[@rxap/ngx-oauth2-proxy](../wiki/globals) / provideOauth2Proxy
|
|
2
|
+
|
|
3
|
+
# Function: provideOauth2Proxy()
|
|
4
|
+
|
|
5
|
+
> **provideOauth2Proxy**(): `EnvironmentProviders`
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:21](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L21)
|
|
8
|
+
|
|
9
|
+
## Returns
|
|
10
|
+
|
|
11
|
+
`EnvironmentProviders`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/ngx-oauth2-proxy](../wiki/globals) / subscribeToLogoutEvent
|
|
2
|
+
|
|
3
|
+
# Function: subscribeToLogoutEvent()
|
|
4
|
+
|
|
5
|
+
> **subscribeToLogoutEvent**(`pubSubService`): () => `void`
|
|
6
|
+
|
|
7
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L11)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### pubSubService
|
|
12
|
+
|
|
13
|
+
`PubSubService`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Function`
|
|
18
|
+
|
|
19
|
+
### Returns
|
|
20
|
+
|
|
21
|
+
`void`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Provides an Angular guard and utilities for integrating with an OAuth2 Proxy. It includes a guard to protect routes, a method to fetch user profile information, and a data source for managing the user profile. Also provides an app initializer to subscribe to logout events.
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/ngx-oauth2-proxy)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
- [Installation](../wiki/#installation)
|
|
11
|
+
- [Generators](../wiki/#generators)
|
|
12
|
+
- [init](../wiki/#init)
|
|
13
|
+
|
|
14
|
+
# Installation
|
|
15
|
+
|
|
16
|
+
**Add the package to your workspace:**
|
|
17
|
+
```bash
|
|
18
|
+
yarn add @rxap/ngx-oauth2-proxy
|
|
19
|
+
```
|
|
20
|
+
**Install peer dependencies:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @angular/common@^19.1.3 @angular/core@^19.1.3 @angular/router@^19.1.3 @rxap/config@^19.0.2-dev.1 @rxap/data-source@^19.0.2-dev.1 @rxap/ngx-pub-sub@^19.0.2-dev.0 @rxap/pattern@^1.1.12-dev.0 rxjs@^7.8.1
|
|
23
|
+
```
|
|
24
|
+
**Execute the init generator:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn nx g @rxap/ngx-oauth2-proxy:init
|
|
27
|
+
```
|
|
28
|
+
# Generators
|
|
29
|
+
|
|
30
|
+
## init
|
|
31
|
+
> Initialize the package in the workspace
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
nx g @rxap/ngx-oauth2-proxy:init
|
|
35
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[@rxap/ngx-oauth2-proxy](../wiki/globals) / Oauth2ProxyUserProfile
|
|
2
|
+
|
|
3
|
+
# Interface: Oauth2ProxyUserProfile
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:10](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L10)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### email
|
|
10
|
+
|
|
11
|
+
> **email**: `string`
|
|
12
|
+
|
|
13
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:18](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L18)
|
|
14
|
+
|
|
15
|
+
Email address of the user
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### user
|
|
20
|
+
|
|
21
|
+
> **user**: `string`
|
|
22
|
+
|
|
23
|
+
Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:14](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L14)
|
|
24
|
+
|
|
25
|
+
User Id of the user
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Classes
|
|
4
|
+
|
|
5
|
+
- [GetOauth2ProxyUserProfileMethod](../wiki/Class.GetOauth2ProxyUserProfileMethod)
|
|
6
|
+
- [Oauth2ProxyUserProfileDataSource](../wiki/Class.Oauth2ProxyUserProfileDataSource)
|
|
7
|
+
|
|
8
|
+
### Interfaces
|
|
9
|
+
|
|
10
|
+
- [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
|
|
11
|
+
|
|
12
|
+
### Functions
|
|
13
|
+
|
|
14
|
+
- [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
|
|
15
|
+
- [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
|
|
16
|
+
- [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @rxap/ngx-oauth2-proxy v19.0.2-dev.2
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [GetOauth2ProxyUserProfileMethod](../wiki/Class.GetOauth2ProxyUserProfileMethod)
|
|
6
|
+
- [Oauth2ProxyUserProfileDataSource](../wiki/Class.Oauth2ProxyUserProfileDataSource)
|
|
7
|
+
|
|
8
|
+
## Interfaces
|
|
9
|
+
|
|
10
|
+
- [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
|
|
11
|
+
|
|
12
|
+
## Functions
|
|
13
|
+
|
|
14
|
+
- [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
|
|
15
|
+
- [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
|
|
16
|
+
- [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.0.2-dev.
|
|
2
|
+
"version": "19.0.2-dev.2",
|
|
3
3
|
"name": "@rxap/ngx-oauth2-proxy",
|
|
4
4
|
"description": "Provides an Angular guard and utilities for integrating with an OAuth2 Proxy. It includes a guard to protect routes, a method to fetch user profile information, and a data source for managing the user profile. Also provides an app initializer to subscribe to logout events.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@angular/common": "^19.1.3",
|
|
12
12
|
"@angular/core": "^19.1.3",
|
|
13
13
|
"@angular/router": "^19.1.3",
|
|
14
|
-
"@rxap/config": "^19.0.2-dev.
|
|
15
|
-
"@rxap/data-source": "^19.0.2-dev.
|
|
14
|
+
"@rxap/config": "^19.0.2-dev.1",
|
|
15
|
+
"@rxap/data-source": "^19.0.2-dev.1",
|
|
16
16
|
"@rxap/ngx-pub-sub": "^19.0.2-dev.0",
|
|
17
17
|
"@rxap/pattern": "^1.1.12-dev.0",
|
|
18
18
|
"rxjs": "^7.8.1"
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"package": "@rxap/config",
|
|
74
|
-
"version": "19.0.2-dev.
|
|
74
|
+
"version": "19.0.2-dev.1"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"package": "@rxap/data-source",
|
|
78
|
-
"version": "19.0.2-dev.
|
|
78
|
+
"version": "19.0.2-dev.1"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"package": "@rxap/data-structure-tree",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
},
|
|
123
123
|
"schematics": "./generators.json",
|
|
124
124
|
"sideEffects": false,
|
|
125
|
-
"gitHead": "
|
|
125
|
+
"gitHead": "8058138ff98d9e37b711846892c79ebc45ed17d4",
|
|
126
126
|
"module": "fesm2022/rxap-ngx-oauth2-proxy.mjs",
|
|
127
127
|
"typings": "index.d.ts",
|
|
128
128
|
"exports": {
|