nicolasroehm / cognitoservice Goto Github PK
View Code? Open in Web Editor NEWAngular service providing user management on AWS Cognito User Pool
Angular service providing user management on AWS Cognito User Pool
Does this project still alive, is there any possibilities to get angular 15 upgrade?
When trying to change the password using "this.cognitoService.changePassword" I'm unable to do so as it throws the following error:
caliatys-cognito-service.js:580 CognitoService : changePassword -> changePassword Error: User is not authenticated
Although I was authenticated on other component ("login component") and both isAuthenticated and getUsername retrieve the correct data in this "change password component".
this.cognitoService.isAuthenticated() == true
this.cognitoService.getUsername() == "my_username"
Some of the examples in the Readme need to be updated into using the new cognitoHelper
Before
this.cognitoService.signOut();
After
this.cognitoHelper.cognitoService.signOut();
Hi Guys,
Thanks for sharing this library its very usefull and working well. I'm having some diffuclties enabling the Time-based One Time Password for my users. The Userpool has the optional MFA property set so i have to enable this per user. In the amazon cognito interface im only able to enable SMS MFA and not the Time-based One Time Password.
Im woindering if this is possible with this library and what i need to do to enable it. If i use cognitoService.setMfa(true) i get error because no phonenumber is set(which is correct).
Thanks
Several packages are locked to specific versions, npm shows several warnings when installing
package.json
...
"amazon-cognito-identity-js": "2.0.6",
...
"aws-sdk": "2.247.1",
...
Output when installing
npm WARN @caliatys/[email protected] requires a peer of [email protected] but none is installed
. You must install peer dependencies yourself.
npm WARN @caliatys/[email protected] requires a peer of [email protected] but none is installed. You must instal
l peer dependencies yourself.
When following the readme steps a ton of other changes more than those listed were required to get this working, it's a great project an I hope it gets traction, but a part to get it working is helping other users getting started.
When calling this.cognitoHelper.cognitoService.signOut();
it tries to redirect to /login
giving the following error:
Cannot match any routes. URL Segment: 'login'
Is't that something that each user is expected to implement and be user defined instead of library defined?
We've been using CognitoService in our Angular application and we found it very helpful, but we found the following issue.
A login attempt without MFA will automatically set the Provider to the one used to Sign in (Cognito, in our case), however logging in with MFA does not set the Provider. This means that unless the user code sets it explicitly consequent calls that rely on this, such as refreshSession() will fail.
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.