Skip to content

Instantly share code, notes, and snippets.

View NilukaSripalim's full-sized avatar
🏢
Working From Office

Niluka Sripali Monnankulama NilukaSripalim

🏢
Working From Office
View GitHub Profile
@NilukaSripalim
NilukaSripalim / gist:367deafcf8698af10b6d298fc2f2ec02
Created March 22, 2024 16:22
[WSO2][Asgardeo]This script ensures that only users authenticated via federation can access the application, providing an additional layer of security against unauthorized access attempts via username and password.
// Adaptive script to allow access only via federation and block access via login and password
// Error page to redirect unauthorized users,
// can be either an absolute URL or relative URL to server root, or empty/null
// null/empty value will redirect to the default error page
var errorPage = '';
// Additional query parameters to be added to the above URL.
// Hint: Use i18n keys for error messages
var errorPageParameters = {
'status': 'Unauthorized',
@NilukaSripalim
NilukaSripalim / WSO2_Identity_Server_Cypress_Test_User_and_Application_Management.spec.ts
Last active April 29, 2024 16:16
This Cypress test script logs in to the WSO2 Identity Server console, creates a SCIM user, and creates an OIDC application. After each test, it deletes the created user and application to clean up the environment. The createScimUser, createApplication, deleteUser, and filterAndDeleteApplication functions handle the user and application creation …
/*
* Copyright (c) 2024 WSO2 LLC. (http://www.wso2.org)
* All rights reserved.
*
* This software is the property of WSO2 LLC. and its suppliers, if any.
* Dissemination of any information or reproduction of any material contained
* herein in any form is strictly forbidden, unless permitted by WSO2 expressly.
* You may not alter or remove any copyright or other notice from copies of this content.
*/