Coder Social home page Coder Social logo

Comments (6)

assyadh avatar assyadh commented on June 14, 2024

Once you Sign in, the CognitoUser instance has the CognitoUserSession object populated. I am looking into incorporating Identity apis with this.

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 14, 2024

See: https://github.com/aws/aws-sdk-net-extensions-cognito/blob/master/src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs#L40

from aws-aspnet-cognito-identity-provider.

jlwhitfill avatar jlwhitfill commented on June 14, 2024

Thanks, I realized after I sent it that it was probably incorporated in the CognitoUser, but figured I would leave it there since the Identity APIs also have an option for it. Thanks!

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 14, 2024

I have a PR in to expose tokens through HttpContext.GetTokenAsync(). I will let you know when this is released

from aws-aspnet-cognito-identity-provider.

assyadh avatar assyadh commented on June 14, 2024

Hi, 0.9.0.7 now exposes the token through HttpContext.GetTokenAsync():

See: https://github.com/aws/aws-aspnet-cognito-identity-provider/blob/master/src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs#L141

from aws-aspnet-cognito-identity-provider.

jlwhitfill avatar jlwhitfill commented on June 14, 2024

The Context.GetTokentAsync is now working as expected, however in one of your previous comments here you said the CognitoUser.SessionTokens are being populated as well. In checking this. I am finding that it never gets set and is always null when I check it after login.

from aws-aspnet-cognito-identity-provider.

Related Issues (20)

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.