akamai / edgeauth-token-java Goto Github PK
View Code? Open in Web Editor NEWAkamai Authorization Token for Java
Akamai Authorization Token for Java
Hi Team,
How can I validate a token generated with any algo :sha256,MD..
Thanks
Documentation is stating that EdgeAuth-Token-Java supports Java 1.6+.
However during testing we got this error when trying to generate the token using edgeauth-0.2.0.jar:
java.lang.UnsupportedClassVersionError: com/akamai/edgeauth/EdgeAuthException : Unsupported major.minor version 52.0:
After some research it appears that the 'major.minor version 52.0' error is possibly because the jar was compiled in JDK 1.8, but we are trying to run it using a JDK 1.7 environment. The reported number is the required number, not the number we are using.
Could you please confirm that Java 1.7 is supported here ? or should we update documentation to indicates that Java 1.8 is required ?
Hi,
The script is not compatible with commander 7+ versions (now it is on v8.0.0 as LTS)
You need to user commander 6.1.0 in order to use cms-edgeauth.js as it writed or add the method opt() to the "program." object to "program.opt()." to retreieve command variables...
var ea = new EdgeAuth({
tokenType: program.opts().token_type,
tokenName: program.opts().token_name,
key: program.opts().key,
algorithm: program.opts().algo,
salt: program.opts().salt,
startTime: program.opts().start_time,
endTime: program.opts().end_time,
windowSeconds: program.opts().window,
fieldDelimiter: program.opts().field_delimiter,
aclDelimiter: program.opts().acl_delimiter,
escapeEarly: program.opts().escape_early,
verbose: program.opts().verbose,
url: program.opts().url,
acl: program.opts().acl,
ip: program.opts().ip,
payload: program.opts().payload,
sessionId: program.opts().session_id
})
var token
if (program.acl) {
token = ea.generateACLToken(program.opts().acl)
} else { // program.url
token = ea.generateURLToken(program.opts().url)
}
I am using this library to get AuthToken , but in maven central , I see there is a CVE found . Are there any plans to fix that .
CVE-2020-15250
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.