fix: require https for Okta audience URL
Signed-off-by: Alex Krantz <alex@krantz.dev>
This commit is contained in:
@@ -275,6 +275,10 @@ export const createOktaProvider = (
|
||||
const audience = envConfig.getString('audience');
|
||||
const callbackUrl = `${globalConfig.baseUrl}/${providerId}/handler/frame`;
|
||||
|
||||
if (!audience.startsWith('https')) {
|
||||
throw new Error("URL for 'audience' must start with 'https'.");
|
||||
}
|
||||
|
||||
const catalogIdentityClient = new CatalogIdentityClient({
|
||||
catalogApi,
|
||||
tokenIssuer,
|
||||
|
||||
Reference in New Issue
Block a user