JimmyShoe

0

votes
3

answer
21

views

api status code for post request that has failed

I have an post api call that currently creates an appointment in my booking system. If the api call sends the appointment request and the api can successfully create an appoinment the api returns a 201 created status code. Currently if the appointment request is not created (due to various things su...
JimmyShoe
1

votes
1

answer
846

views

Net core MVC clean architecture without repository pattern

I'm trying to create a MVC application in net core 2.1 using the eshoponweb example application. Ive read that in entity Framework core there's no great benefit of putting a repository layer in and to just use the ef dbcontext directly. How would I do this in a clean architecture scenerio. In the ex...
JimmyShoe
1

votes
1

answer
320

views

vue jwt token storage

I am following vue course on udemy and have looked at several online resources and they all seem to have a process where i send username and password to my api and it returns my jwt access token. Then the token is stored in state (using vuex) and to support page refreshes(and keeping user logged in)...
JimmyShoe
1

votes
1

answer
107

views

Identityserver and asp.net identity in multitenant spa application and authorisation

I have a spa application with a .net core 2 api. I would like to use identityserver 4 so that in future i can also provide a sso solution and allow access to my other api/applications. I have a database that contains the all user information (along with tenant information) for all tenants that ident...
JimmyShoe
1

votes
1

answer
47

views

c# datetime utc string and the z when using in javascript

I am getting a date from my api and the format i get is '2019-04-17T15:04:28' the date is UTC. Should the date i get back have the Z at the end or doesn't it matter. Javascript date function will display incorrect if the Z is not there wont it? Thanks @Esko thanks i think for me the confusion is tha...
JimmyShoe
0

votes
0

answer
2

views

azure application settings - how to add nested item

i have a appservice on azure that is running a .net core api. in my appsettings.json file i have a section something similar to : 'Serilog': { 'LevelSwitches': { '$controlSwitch': 'Information' }, 'MinimumLevel': { 'ControlledBy': '$controlSwitch', 'Override': { 'Microsoft': 'Warning', 'System':...
JimmyShoe
1

votes
1

answer
0

views

.NET Core Upgrading

I have a API that is actively being developed, running on .net core 2.1. Is the idea with .NET Core to constantly be updating my project/code to the latest version of .NET Core? Now I see that 2.2 is stable. Should I target that, and then when 3.0 is here change to target that?
JimmyShoe
1

votes
1

answer
60

views

vue emit data back to parent when using a slot

I have input on custom component and when i click on the next button on the wrapper component i need to emit details to the parent component. How is this possible in vue? wrapper.vue {{nextButtonText}} parent.vue customComponent1.vue code above is for illustrative purposes.
JimmyShoe
1

votes
1

answer
145

views

UserManager.CheckPasswordAsync vs SignInManager.PasswordSignInAsync

using asp net core identity - when user provides password and username to get a jwt token they post credentials to /api/token should my token controller method be using usermanager to check the password using the CheckPasswordAsync and if this passes return the token or should i use the signinmanage...
JimmyShoe