azure - Authenticated REST API for a mobile app and website on ASP.NET Core -


i want build rest api, hosted on azure, built "asp.net core web application (.net framework)" template stores identities in ef.

i want avoid having views etc clutters codebase.

it should callable described in article (tl;dr: header authentication , post /token endpoint , controllers [authorize]) https://blogs.msdn.microsoft.com/martinkearn/2015/03/25/securing-and-securely-calling-web-api-and-authorize/

however, fail find how /token endpoint in asp.net core. i'm reading bunch of stuff on jwt, bearer, owin, ..., , basic auth bad, lost on how proceed.

the api used website , mobile apps.

what need , steps need take "hello world" , running?

also, why seemingly 1 architecture?

there isn't token endpoint in asp.net core.

you can build custom middleware, explained in article: asp.net core token authentication guide or can use external package:

for last, suggest article: bearer token authentication in asp.net core

if interested in angular 2 spa asp.net core web api uses token authentication (through identityserver4), give @ repository: https://github.com/robisim74/angular2spawebapi (disclaimer, it's mine).


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -