skip to Main Content

Amazon web services – ECS Service can't obtain configuration from Cognito

I have a .NET application which has AddAuthentication() and UseAuthentication() for my application. Users are authenticated using Cognito. services .AddAuthentication(options => { options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }) .AddJwtBearer(options => { options.RequireHttpsMetadata = true; options.MapInboundClaims = false; options.Authority =…

VIEW QUESTION

Laravel : JWT Auth access auth()->user() return null

i am trying to use JWT for api authentication i am building, i have managed to get the JWT token with code like the following. $user = User::select('id_user', DB::raw('AES_DECRYPT(id_user, "nur") as username')) ->where('id_user', DB::raw('AES_ENCRYPT("' . $credentials['username'] . '", "...")')) ->where('password',…

VIEW QUESTION

How can I rewrite this?

Currently I am trying to write RESTapi for a website with users and flashcards. I am using a MERN stack in order to build this. The mongodb structure is the following: //FlashCardSchema const flashcardSchema = new Schema({ deckID: { type:…

VIEW QUESTION
Back To Top
Search