Username/password authentication for Azure App Service: Mobile -


i'm following tutorial in order provide username/password authentication mobile server: http://www.newventuresoftware.com/blog/custom-authentication-with-azure-mobile-apps

my server-side code this, using microsoft.azure.mobile.server.login nuget package:

private jwtsecuritytoken getauthenticationtokenforuser(string username) {     var claims = new[] { new claim(jwtregisteredclaimnames.sub, username) };     var signingkey = environment.getenvironmentvariable("website_auth_signing_key");     var issuer = request.requesturi.getleftpart(uripartial.authority);     return appserviceloginhandler.createtoken(claims, signingkey, issuer, issuer, timespan.fromhours(24)); } 

this generating weird compiler error. call appserviceloginhandler.createtoken breaking compiler apparently misleading message:

reference type 'jwtsecuritytoken' claims defined in 'system.identitymodel.tokens.jwt', not found.

the type system.identitymodel.tokens.jwt.jwtsecuritytoken picked intellisense. rebuilding project not help. line breaks build no matter do.

i error when updating latest nuget version 5.0.0. reverting 4.0.2.2 fixes it. (referring system.identitymodel.tokens.jwt nuget package)


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -