@asgardeo/javascript 0.11.0 → 0.12.0
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/dist/AsgardeoJavaScriptClient.d.ts +2 -0
- package/dist/__legacy__/models/client-config.d.ts +7 -0
- package/dist/cjs/index.js +38 -6
- package/dist/cjs/index.js.map +4 -4
- package/dist/constants/v2/OIDCDiscoveryConstants.d.ts +39 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +38 -6
- package/dist/index.js.map +4 -4
- package/dist/models/config.d.ts +78 -0
- package/package.json +1 -1
package/dist/models/config.d.ts
CHANGED
|
@@ -111,6 +111,84 @@ export interface BaseConfig<T = unknown> extends WithPreferences {
|
|
|
111
111
|
* Not recommended for public clients like browser applications.
|
|
112
112
|
*/
|
|
113
113
|
clientSecret?: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* OpenID Connect discovery configuration.
|
|
116
|
+
* Controls how the SDK resolves endpoint URLs from the authorization server.
|
|
117
|
+
* Each discovery mechanism is independently configurable.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* // Use a custom well-known discovery document URL
|
|
121
|
+
* discovery: { wellKnown: { endpoint: "https://custom.example.com/.well-known/openid-configuration" } }
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* // Disable well-known discovery entirely
|
|
125
|
+
* discovery: { wellKnown: { enabled: false } }
|
|
126
|
+
*/
|
|
127
|
+
discovery?: {
|
|
128
|
+
/**
|
|
129
|
+
* Configuration for OpenID Connect Discovery via the well-known endpoint (RFC 8414).
|
|
130
|
+
* The SDK fetches `{baseUrl}/oauth2/token/.well-known/openid-configuration` by default.
|
|
131
|
+
*/
|
|
132
|
+
wellKnown?: {
|
|
133
|
+
/**
|
|
134
|
+
* Whether to fetch and use the well-known discovery document to resolve endpoint URLs.
|
|
135
|
+
* @default true
|
|
136
|
+
*/
|
|
137
|
+
enabled?: boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Optional overrides for the OIDC protocol endpoints.
|
|
142
|
+
* By default, the SDK derives all endpoint URLs from the well-known discovery document
|
|
143
|
+
* located at `{baseUrl}/oauth2/token/.well-known/openid-configuration`.
|
|
144
|
+
* Use this when your authorization server exposes endpoints at non-standard paths,
|
|
145
|
+
* or when a custom domain differs from `baseUrl`.
|
|
146
|
+
*
|
|
147
|
+
* Individual overrides take precedence over values resolved from the discovery document.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* endpoints: {
|
|
151
|
+
* wellKnown: "https://custom-domain.example.com/.well-known/openid-configuration",
|
|
152
|
+
* authorization: "https://custom-domain.example.com/oauth2/authorize",
|
|
153
|
+
* }
|
|
154
|
+
*/
|
|
155
|
+
endpoints?: {
|
|
156
|
+
/**
|
|
157
|
+
* The authorization endpoint URL.
|
|
158
|
+
* If not provided, resolved from the well-known discovery document.
|
|
159
|
+
*/
|
|
160
|
+
authorization?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The end-session (logout) endpoint URL.
|
|
163
|
+
* If not provided, resolved from the well-known discovery document.
|
|
164
|
+
*/
|
|
165
|
+
endSession?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The introspection endpoint URL.
|
|
168
|
+
* If not provided, resolved from the well-known discovery document.
|
|
169
|
+
*/
|
|
170
|
+
introspection?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The JSON Web Key Set (JWKS) endpoint URL used to fetch public keys for token verification.
|
|
173
|
+
* If not provided, resolved from the well-known discovery document.
|
|
174
|
+
*/
|
|
175
|
+
jwks?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The token endpoint URL.
|
|
178
|
+
* If not provided, resolved from the well-known discovery document.
|
|
179
|
+
*/
|
|
180
|
+
token?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The userinfo endpoint URL.
|
|
183
|
+
* If not provided, resolved from the well-known discovery document.
|
|
184
|
+
*/
|
|
185
|
+
userInfo?: string;
|
|
186
|
+
/**
|
|
187
|
+
* The OpenID Connect discovery document URL.
|
|
188
|
+
* Defaults to `{baseUrl}/oauth2/token/.well-known/openid-configuration`.
|
|
189
|
+
*/
|
|
190
|
+
wellKnown?: string;
|
|
191
|
+
};
|
|
114
192
|
/**
|
|
115
193
|
* Optional instance ID for multi-auth context support.
|
|
116
194
|
* Use this when you need multiple authentication contexts in the same application.
|