@edirect/oidc-client 11.0.48 → 11.0.49

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.
Files changed (3) hide show
  1. package/README.md +24 -24
  2. package/dist/README.md +24 -24
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,8 +28,8 @@ import OidcClient from '@edirect/oidc-client';
28
28
 
29
29
  const client = await OidcClient({
30
30
  grantType: 'password',
31
- baseUrl: process.env.OIDC_PROVIDER_URL, // e.g., 'https://keycloak.example.com'
32
- oidcPath: process.env.OIDC_PROVIDER_PATH, // e.g., '/realms/my-realm'
31
+ baseUrl: process.env.OIDC_PROVIDER_URL, // e.g., 'https://keycloak.example.com'
32
+ oidcPath: process.env.OIDC_PROVIDER_PATH, // e.g., '/realms/my-realm'
33
33
  clientId: process.env.OIDC_CLIENT_ID,
34
34
  clientSecret: process.env.OIDC_CLIENT_SECRET,
35
35
  });
@@ -92,21 +92,21 @@ const tokenSet = await client.getAccessToken({ code: authorizationCode });
92
92
 
93
93
  Factory function that initializes the OIDC client for the specified grant type.
94
94
 
95
- | Parameter | Type | Description |
96
- |-----------|------|-------------|
97
- | `grantType` | `'password' \| 'client_credentials' \| 'sso'` | OAuth2 grant type |
98
- | `baseUrl` | `string` | OIDC provider base URL |
99
- | `oidcPath` | `string` | OIDC realm path (e.g., `/realms/my-realm`) |
100
- | `clientId` | `string` | Client ID registered in the OIDC provider |
101
- | `clientSecret` | `string` | Client secret |
102
- | `redirectUri` | `string` | Callback URL (for `sso` grant) |
95
+ | Parameter | Type | Description |
96
+ | -------------- | --------------------------------------------- | ------------------------------------------ |
97
+ | `grantType` | `'password' \| 'client_credentials' \| 'sso'` | OAuth2 grant type |
98
+ | `baseUrl` | `string` | OIDC provider base URL |
99
+ | `oidcPath` | `string` | OIDC realm path (e.g., `/realms/my-realm`) |
100
+ | `clientId` | `string` | Client ID registered in the OIDC provider |
101
+ | `clientSecret` | `string` | Client secret |
102
+ | `redirectUri` | `string` | Callback URL (for `sso` grant) |
103
103
 
104
104
  ### Client Methods
105
105
 
106
- | Method | Signature | Description |
107
- |--------|-----------|-------------|
108
- | `getAccessToken` | `(loginData?) => Promise<TokenSet>` | Acquire an access token |
109
- | `getRefreshToken` | `(tokenSet) => Promise<TokenSet>` | Refresh an existing token set (not for `client_credentials`) |
106
+ | Method | Signature | Description |
107
+ | ----------------- | ----------------------------------- | ------------------------------------------------------------ |
108
+ | `getAccessToken` | `(loginData?) => Promise<TokenSet>` | Acquire an access token |
109
+ | `getRefreshToken` | `(tokenSet) => Promise<TokenSet>` | Refresh an existing token set (not for `client_credentials`) |
110
110
 
111
111
  ### `TokenSet`
112
112
 
@@ -115,7 +115,7 @@ interface TokenSet {
115
115
  access_token: string;
116
116
  token_type: string;
117
117
  expires_in: number;
118
- refresh_token?: string; // not present for client_credentials
118
+ refresh_token?: string; // not present for client_credentials
119
119
  refresh_expires_in?: number;
120
120
  id_token?: string;
121
121
  session_state?: string;
@@ -125,12 +125,12 @@ interface TokenSet {
125
125
 
126
126
  ## Environment Variables
127
127
 
128
- | Variable | Description |
129
- |----------|-------------|
130
- | `OIDC_PROVIDER_URL` | OIDC provider base URL (e.g., `https://keycloak.example.com`) |
131
- | `OIDC_PROVIDER_PATH` | OIDC realm path (e.g., `/realms/my-realm`) |
132
- | `OIDC_CLIENT_ID` | Client ID |
133
- | `OIDC_CLIENT_SECRET` | Client secret |
134
- | `OIDC_USERNAME` | Username (for `password` grant) |
135
- | `OIDC_PASSWORD` | Password (for `password` grant) |
136
- | `OIDC_CALLBACK_URL` | Redirect URI (for `sso` grant) |
128
+ | Variable | Description |
129
+ | -------------------- | ------------------------------------------------------------- |
130
+ | `OIDC_PROVIDER_URL` | OIDC provider base URL (e.g., `https://keycloak.example.com`) |
131
+ | `OIDC_PROVIDER_PATH` | OIDC realm path (e.g., `/realms/my-realm`) |
132
+ | `OIDC_CLIENT_ID` | Client ID |
133
+ | `OIDC_CLIENT_SECRET` | Client secret |
134
+ | `OIDC_USERNAME` | Username (for `password` grant) |
135
+ | `OIDC_PASSWORD` | Password (for `password` grant) |
136
+ | `OIDC_CALLBACK_URL` | Redirect URI (for `sso` grant) |
package/dist/README.md CHANGED
@@ -28,8 +28,8 @@ import OidcClient from '@edirect/oidc-client';
28
28
 
29
29
  const client = await OidcClient({
30
30
  grantType: 'password',
31
- baseUrl: process.env.OIDC_PROVIDER_URL, // e.g., 'https://keycloak.example.com'
32
- oidcPath: process.env.OIDC_PROVIDER_PATH, // e.g., '/realms/my-realm'
31
+ baseUrl: process.env.OIDC_PROVIDER_URL, // e.g., 'https://keycloak.example.com'
32
+ oidcPath: process.env.OIDC_PROVIDER_PATH, // e.g., '/realms/my-realm'
33
33
  clientId: process.env.OIDC_CLIENT_ID,
34
34
  clientSecret: process.env.OIDC_CLIENT_SECRET,
35
35
  });
@@ -92,21 +92,21 @@ const tokenSet = await client.getAccessToken({ code: authorizationCode });
92
92
 
93
93
  Factory function that initializes the OIDC client for the specified grant type.
94
94
 
95
- | Parameter | Type | Description |
96
- |-----------|------|-------------|
97
- | `grantType` | `'password' \| 'client_credentials' \| 'sso'` | OAuth2 grant type |
98
- | `baseUrl` | `string` | OIDC provider base URL |
99
- | `oidcPath` | `string` | OIDC realm path (e.g., `/realms/my-realm`) |
100
- | `clientId` | `string` | Client ID registered in the OIDC provider |
101
- | `clientSecret` | `string` | Client secret |
102
- | `redirectUri` | `string` | Callback URL (for `sso` grant) |
95
+ | Parameter | Type | Description |
96
+ | -------------- | --------------------------------------------- | ------------------------------------------ |
97
+ | `grantType` | `'password' \| 'client_credentials' \| 'sso'` | OAuth2 grant type |
98
+ | `baseUrl` | `string` | OIDC provider base URL |
99
+ | `oidcPath` | `string` | OIDC realm path (e.g., `/realms/my-realm`) |
100
+ | `clientId` | `string` | Client ID registered in the OIDC provider |
101
+ | `clientSecret` | `string` | Client secret |
102
+ | `redirectUri` | `string` | Callback URL (for `sso` grant) |
103
103
 
104
104
  ### Client Methods
105
105
 
106
- | Method | Signature | Description |
107
- |--------|-----------|-------------|
108
- | `getAccessToken` | `(loginData?) => Promise<TokenSet>` | Acquire an access token |
109
- | `getRefreshToken` | `(tokenSet) => Promise<TokenSet>` | Refresh an existing token set (not for `client_credentials`) |
106
+ | Method | Signature | Description |
107
+ | ----------------- | ----------------------------------- | ------------------------------------------------------------ |
108
+ | `getAccessToken` | `(loginData?) => Promise<TokenSet>` | Acquire an access token |
109
+ | `getRefreshToken` | `(tokenSet) => Promise<TokenSet>` | Refresh an existing token set (not for `client_credentials`) |
110
110
 
111
111
  ### `TokenSet`
112
112
 
@@ -115,7 +115,7 @@ interface TokenSet {
115
115
  access_token: string;
116
116
  token_type: string;
117
117
  expires_in: number;
118
- refresh_token?: string; // not present for client_credentials
118
+ refresh_token?: string; // not present for client_credentials
119
119
  refresh_expires_in?: number;
120
120
  id_token?: string;
121
121
  session_state?: string;
@@ -125,12 +125,12 @@ interface TokenSet {
125
125
 
126
126
  ## Environment Variables
127
127
 
128
- | Variable | Description |
129
- |----------|-------------|
130
- | `OIDC_PROVIDER_URL` | OIDC provider base URL (e.g., `https://keycloak.example.com`) |
131
- | `OIDC_PROVIDER_PATH` | OIDC realm path (e.g., `/realms/my-realm`) |
132
- | `OIDC_CLIENT_ID` | Client ID |
133
- | `OIDC_CLIENT_SECRET` | Client secret |
134
- | `OIDC_USERNAME` | Username (for `password` grant) |
135
- | `OIDC_PASSWORD` | Password (for `password` grant) |
136
- | `OIDC_CALLBACK_URL` | Redirect URI (for `sso` grant) |
128
+ | Variable | Description |
129
+ | -------------------- | ------------------------------------------------------------- |
130
+ | `OIDC_PROVIDER_URL` | OIDC provider base URL (e.g., `https://keycloak.example.com`) |
131
+ | `OIDC_PROVIDER_PATH` | OIDC realm path (e.g., `/realms/my-realm`) |
132
+ | `OIDC_CLIENT_ID` | Client ID |
133
+ | `OIDC_CLIENT_SECRET` | Client secret |
134
+ | `OIDC_USERNAME` | Username (for `password` grant) |
135
+ | `OIDC_PASSWORD` | Password (for `password` grant) |
136
+ | `OIDC_CALLBACK_URL` | Redirect URI (for `sso` grant) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/oidc-client",
3
- "version": "11.0.48",
3
+ "version": "11.0.49",
4
4
  "packageScope": "@edirect",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",