Git Product home page Git Product logo

cognitoservice's Introduction

Hi, I'm Nicolas Roehm

I work as a software engineer at Alizent - Air Liquide Group in Strasbourg, France. I enjoy sports and working on side projects in my spare time!

I'm currently working with

ElrondNetwork Rust smart contract library Next.js


Languages and Tools

Visual Studio Code

HTML5

CSS3

Sass

Bootstrap

JavaScript

TypeScript

Webpack

Angular

VueJs

NestJS

Node.js

Rust

PHP

Symfony

Docker

Amazon Web Services



Networks

Nicolas Roehm | StackOverflow Nicolas Roehm | LinkedIn Studio Centurio | YouTube Nicolas Roehm | ArtStation

Github activities

NicolasRoehm's Github Stats

cognitoservice's People

Contributors

nicolasroehm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cognitoservice's Issues

Logging in with MFA does not set the Provider

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.

Angular 15

Does this project still alive, is there any possibilities to get angular 15 upgrade?

[Question] Cognito TOTP, how to enable this?

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

Some readme examples need cognitoHelper

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();

Several packages are locked to specific versions

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.

Readme requires more steps than those provided

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.

User is not authenticated "Error" when changing password

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"

Signout redirects to login route

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.