Parameter route in ASP.NET Web API using OWIN OAuthAuthorization

I am trying to use a route like "/ api / {culture} / token" for my OAuth authorization process in my web API, but I am not successful with that.

 var options = new OAuthAuthorizationServerOptions()
        {
            AllowInsecureHttp = true,
            TokenEndpointPath = new PathString("/api/{culture}/token"),
            AccessTokenExpireTimeSpan = TimeSpan.FromDays(1),
            Provider = new SimpleAuthorizationServerProvider()
        };

      

I've seen how to access query string parameters as described here , but would it be better to name this route like, say, api / en-US / token instead of api / token /? auth_parameters & culture = en-US

+3
c # asp.net asp.net-web-api owin


source to share


No one has answered this question yet

See similar questions:

12
owin oauth sends additional parameters

or similar:

1270
Why not inherit from List <T>?
1153
How do I get ASP.NET Web API to return JSON instead of XML using Chrome?
818
ASP.NET Web Site or ASP.NET Web Application?
392
WCF vs ASP.NET Web API
372
How to secure ASP.NET Web API
129
How can I pass multiple ASP.NET Web API GET parameters?
55
Simple JWT Authentication in ASP.NET Core 1.0 Web Frontend
ten
Using OAuth and Basic Auth in Asp.Net Web Api with Owin
1
Get route attribute during OWIN authentication?
0
Can't pull Web Api using Owin



All Articles
Loading...
X
Show
Funny
Dev
Pics