
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
cordova-plugin-oracle-idm-auth
Advanced tools
Provides authentication and authorization functionality using the Oracle IDM SDK, supporting standard protocols like Basic Auth, OAUTH, OpenID Connect and WebSSO.
The plugin provides authentication and authorization functionality for cordova based mobile applications, supporting standard protocols like Basic Auth, OAUTH, OpenID Connect and webSSO. The plugin abstracts all aspects of authentication and authorization and enforces security best practices for mobile application developers. The plugin is designed to handle multiple authentication flows in parallel.
Execute this command to install cordova-plugin-oracle-idm-auth into your cordova application.
cordova plugin add cordova-plugin-oracle-idm-auth
// Preserve this authentication flow object to interact with the particular flow.
var authFlow;
// The plugin will be available in onDeviceReady or an equivalent callback which is executed after the application is loaded by the device.
document.addEventListener("deviceready", onDeviceReady);
function onDeviceReady() {
// Create the authentication properties
var authProperties = cordova.plugins.IdmAuthFlows.newHttpBasicAuthPropertiesBuilder(...).build();
var authPromise = cordova.plugins.IdmAuthFlows.init(authProperties);
authPromise.then(function(flow) {
authFlow = flow;
});
}
// Do login.
var loginPromise = authFlow.login();
loginPromise.then(function(resp) {
// Perform after login tasks.
})
// Retrieve headers
var getHeadersPromise = authFlow.getHeaders(options);
getHeadersPromise.then(function(headers) {
// Use headers for setting appropriate headers for performing an XHR request.
});
// Find our use's authentication status.
var isAuthenticatedPromise = authFlow.isAuthenticated(options);
isAuthenticatedPromise.then(function(authenticated) {
// Use headers for setting appropriate headers for performing an XHR request.
});
// Logout from a particular authentication flow.
var logoutPromise = authFlow.logout();
logoutPromise.then(function(resp) {
// Do after logout tasks
});
var challengeFields, challengeProceedHandler;
var authFlow;
// Define challenge callback
var callback = function (fields, proceedHandler) {
challengeFields = fields;
challengeProceedHandler = proceedHandler;
...
// Present the login page to the user.
}
// Define timeout callback
var timeoutCallback = function (timeoutResponse) {
// Handle timeout
}
// Auth props to init with.
var basicAuthProps = new cordova.plugins.IdmAuthFlows.HttpBasicAuthPropertiesBuilder(...)
.challengeCallback(callback)
.timeoutCallback(timeoutCallback)
...
...
.build();
// Init the auth flow on load.
cordova.plugins.IdmAuthFlows.init(basicAuthProps).then(function (flow) {
authFlow = flow;
startLogin();
}).catch(errorHandler);
var startLogin = function() {
basicAuthFlow.login().then(function (flow) {
// Do after login stuff.
});
}
// Login button handler
var loginBasicAuth = function() {
// Fill up challengeFields with user inputs.
challengeProceedHandler(challengeFields);
};
// Logout button handler
var logoutBasicAuth = function() {
authFlow.logout().then(function(resp) {
// Do after logout stuff.
// If presenting the user with a login screen, get ready for next login
startLogin();
});
}
Assertion failure in -[KeychainItemWrapper writeToKeychain]
.
This is an apple issue discussed here
and here. Work around for this issue is to [enable keychain sharing from xcode]
(https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html).This project is not accepting external contributions at this time. For bugs or enhancement requests, please file a GitHub issue unless it’s security related. When filing a bug remember that the better written the bug is, the more likely it is to be fixed. If you think you’ve found a security vulnerability, do not raise a GitHub issue and follow the instructions in our security policy.
Please consult the security guide for our responsible security vulnerability disclosure process
Copyright (c) 2017, 2023 Oracle and/or its affiliates Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/.
FAQs
Provides authentication and authorization functionality using the Oracle IDM SDK, supporting standard protocols like Basic Auth, OAUTH, OpenID Connect and WebSSO.
We found that cordova-plugin-oracle-idm-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.