Skip to content

Commit 3a844f7

Browse files
committed
feat: add config AUTHORIZE_HOST
1 parent 944e5d8 commit 3a844f7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ This module read enviroment variables directly.
7777
| OAUTH_REGISTER | `false` | Add params register to Oauth Server |
7878
| OAUTH_REDIRECT_WHITELIST | - | Redirect path after success login whitelist, for multiple value, use `;` as delimeter |
7979
| OAUTH_DENIED_REDIRECT | `Same as OAUTH_HOME` | Redirect path after user after denying the authorization request |
80+
| OAUTH_AUTHORIZE_HOST | `Same as OAUTH_HOST` | Host for Authorization token |
8081
| OAUTH_AUTHORIZE_PATH | `/oauth/authorize` | URL path to request an authorization code |
8182
| OAUTH_TOKEN_PATH | `/oauth/token` | URL path to obtain access tokens |
8283
| OAUTH_REVOKE_PATH | `/oauth/revoke` | URL path to revoke access tokens |

src/core/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export function getClient (profile: string) {
1010
auth: {
1111
tokenHost : getEnv(profile, 'HOST'),
1212
tokenPath : getEnv(profile, 'TOKEN_PATH'),
13+
authorizeHost: getEnv(profile, 'AUTHORIZE_HOST'),
1314
authorizePath: getEnv(profile, 'AUTHORIZE_PATH'),
1415
revokePath : getEnv(profile, 'REVOKE_PATH'),
1516
refreshPath : getEnv(profile, 'REFRESH_PATH'),

0 commit comments

Comments
 (0)