![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@uportal/open-id-connect
Advanced tools
A client side abstraction to efficiently get Open ID Connect tokens from uPortal
# install with npm
npm install @uportal/open-id-connect
# install with yarn
yarn add @uportal/open-id-connect
install with maven
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>uportal__open-id-connect</artifactId>
<version>{version number goes here}</version>
</dependency>
install with gradle
compile 'org.webjars.npm:uportal__open-id-connect:{version number goes here}'
use with ES5
:notebook: When using open-id-connect
helper with ES5 environements, fetch and Promise need to be polyfilled.
Fetch, Regenerator Runtime, and Core JS are recommended, but can be swapped out for other polyfills if wanted.
var oidc = require('@uportal/open-id-connect');
// with a promise
oidc
.default()
.then(function(token) {
console.log(token.encoded); // Raw JWT
console.log(token.decoded); // parsed JSON
})
.catch(function(err) {
console.error(err);
});
// with a callback
oidc.default({}, function(err, token) {
if (err) {
console.error(err);
return;
}
console.log(token.encoded);
console.log(token.decoded);
});
use with ES6+
import oicd from '@uportal/open-id-connect';
// with default values
try {
const { encoded, decoded } = await oidc();
console.log(encoded);
console.log(decoded);
} catch (err) {
console.error(err);
}
// with options
try {
const { encoded, decoded } = await oidc({
userInfoApiUrl: '/uPortal/api/v5-1/userinfo',
timeout: 5000,
propertyTransforms: {
example: JSON.parse
}
});
console.log(encoded);
console.log(decoded);
} catch (err) {
console.error(err);
}
oidc(options, callback); //-> Promise
userInfoApiUrl
- URL for Open ID Connect endpointkey
- name of property to be transformedvalue
- function to apply to propertyerr
- null if resonse is okay, error object otherwisetoken
- object with encoded
and decoded
keys
encoded
has the raw JSON Web Tokendecoded
has the parsed JSON objectresolve
token object
encoded
has the raw JSON Web Tokendecoded
has the parsed JSON objectreject
reason Promise was rejected[1.19.0][] - 2018-12-06
npm-run-all
to prevent possibility of installing insecure sub-dependency (#172).FAQs
A shared Open ID Connect authorization helper for uPortal
The npm package @uportal/open-id-connect receives a total of 99 weekly downloads. As such, @uportal/open-id-connect popularity was classified as not popular.
We found that @uportal/open-id-connect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.