-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from lawp09/feature/client-ip
Feature/client ip
- Loading branch information
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* An input access token | ||
*/ | ||
export interface IInputAccessTokenExtensionsJwtCustomDataProvider { | ||
uri: string; | ||
method?: string; | ||
options?: any; | ||
name?: string; | ||
useJwtInAuthHeader?: boolean; | ||
} | ||
export interface IInputAccessTokenExtensionsJwt { | ||
customDataProvider: IInputAccessTokenExtensionsJwtCustomDataProvider; | ||
} | ||
|
||
export interface IInputAccessTokenExtensions { | ||
jwt: IInputAccessTokenExtensionsJwt; | ||
} | ||
|
||
export interface IInputAccessTokenSource { | ||
url: string; | ||
method: string; | ||
serviceName: string; | ||
basicJwtCacheKey?: string; // the name of the cache key for the basic JWT, to use the same key as the Kong plugin | ||
extendedJwtCacheKey?: string; // the name of the cache key for the extended JWT, to use the same key as the Kong plugin | ||
extendedJwtConfigDigest?: string; // the digest that should be included in the extended JWT, to verify later that we retrieved a cached JWT matching the right config. | ||
clientIp: string; | ||
} | ||
|
||
export interface IInputAccessToken { | ||
accessToken: string; | ||
accessTokenIssuer?: string; | ||
source?: IInputAccessTokenSource; | ||
jwt?: string; | ||
extensions?: IInputAccessTokenExtensions; | ||
} |