markusberg / ltpa Goto Github PK
View Code? Open in Web Editor NEWnpm module for generating and validating ltpa tokens
License: Apache License 2.0
npm module for generating and validating ltpa tokens
License: Apache License 2.0
May I suggest to add an option (i.e. by setting the validity period to 0, or by a new setting) to use the expire datetime as stated in the token? I'd be happy to do this as a PR, but in all honesty, it's probably two lines of code, so faster this way.
Thank you for this module :-)
EDIT: i.e.
line 138 in index.ts
if ((validity == 0 ? timeExpiration : timeCreation + validity + gracePeriod * 2) < now) {
Hi Markus,
I try to use your module and I faced an issue with NPM. Crypto is no longer used and it's now an internal node module.
I'm not a good Nodesjs developper, can you tell me how to fix the error please. The same for Buffer, i didn't see any import of this type in your code.
Regards,
Can I ask if you have tried not only login/auth on node but also cross compatibility with Domino? In this version tokens generated by Domino do not authenticate it seems. It does work with it's own tokens, suggesting a problem with the hash/signature (which is the error on the console too).
I am fairly sure this was not the case before the last release; I did test with existing (generated by Domino) tokens.
Error on my end is always possible of course, but I triple checked the secret and through single stepping that that secret is actually used.
Hi Markus,
Im working on a Nodejs app and it connects to REST API's sitting on IBM websphere application. The API's need the LTPA token for authorisation. Could you let me know if in this scenario, this package will work and what are the configurations required for it to work ?
Thanks so much!!
Olinda
This seems to be different than the way Samir does it in Java. The Java code works for me.
Will you be extending this code to be LTPAv2 as well?
https://sites.google.com/site/samiraraujo/projects/ltpa-token-factory
Hello and sorry if this is no te correct place to ask.
I want to validate in a domino server using ltpa toke, is this possible with this library?
Can you please point me in the right direction about how the validation could work?
Thanks in advance.
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.