mirror of
https://github.com/OpenBankProject/OBP-TypeScript.git
synced 2026-02-06 10:48:07 +00:00
2.1 KiB
2.1 KiB
obp-typescript / Modules / auth / OAuth
Class: OAuth
auth.OAuth
Create OAuth.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new OAuth(config)
Parameters
| Name | Type |
|---|---|
config |
OAuthConfig |
Defined in
Properties
config
• Private config: OAuthConfig
Defined in
instance
• Private instance: OAuth
Defined in
Methods
authHeader
▸ authHeader(pathUri, method): string
Get the Oauth authentication header.
Parameters
| Name | Type | Description |
|---|---|---|
pathUri |
string |
The the relative path of the URL. |
method |
string |
The http method. |
Returns
string
An OAuthConfig value
Defined in
configs
▸ configs(): OAuthConfig
Get OAuthConfig object.
Returns
An OAuthConfig value
Defined in
get
▸ get(): OAuth
Get oauth.OAuth instance.
Returns
OAuth
An oauth.OAuth value