jasontaylordev / CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular UserService

dampergud1 opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
a service like there was in the older versions where you could import a service and access logged in users name etc

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@dampergud1 a possible way to set something up like this is to create a ping endpoint and set it up to be authorized.

And in a new authorization service try to ping that endpoint and if an error comes back you're not logged in, else if no error, you're logged in. The only thing left to do is to modify the interceptor to bypass it's error handling when the ping endpoint is seen.