惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
P
Proofpoint News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Martin Fowler
Martin Fowler
G
Google Developers Blog
F
Fortinet All Blogs
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Tailwind CSS Blog
Cloudbric
Cloudbric
U
Unit 42
MyScale Blog
MyScale Blog
TaoSecurity Blog
TaoSecurity Blog
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
博客园 - Franky
AI
AI
爱范儿
爱范儿
L
LangChain Blog
小众软件
小众软件
D
DataBreaches.Net
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Cloudflare Blog
Help Net Security
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
A
About on SuperTechFans
Scott Helme
Scott Helme
The GitHub Blog
The GitHub Blog
V
V2EX
N
Netflix TechBlog - Medium
S
Security Affairs
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
WordPress大学
WordPress大学

博客园 - 烟雨客

Aspose.PDF跨平台问题解决 在aspx中写c# 在动态生成的HTML中执行JS AWS 2020 Innovate所有视频 sp_executesql 可動態傳入傳出參數 the input stream is not valid binary formate.... when call remoting 用SSISl连接PostgrsSQL Ubuntu 16.04 TLS下安装dotnet异常处理 客户端不刷新 在公网上布署Web Api的时候,不能调用,返回404 在公网(internet)上建立website时不能用http访问 ClickOnce发布后不能安装 从JPG中获取缩略图 MaraDNS与DeadWood一起配置为本地机器提供小型化DNS服务 await, anync The requested page cannot be accessed because the related configuration data for the page is invalid Socket服务端口长连接最多能支持多少? Json序列化 关于获得本机Mac Address的方法
404 Not Find When using Owin with OAuth
烟雨客 · 2015-02-02 · via 博客园 - 烟雨客

在使用Owin+OAuth时,一步一步的测试时,在用

OAuthOptions = new OAuthAuthorizationServerOptions            

{                

TokenEndpointPath = new PathString("/Token"),

 Provider = new ApplicationOAuthProvider(PublicClientId),                

AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),                

AccessTokenExpireTimeSpan = TimeSpan.FromDays(14)

//AllowInsecureHttp = true            

};

app.UseOAuthBearerTokens(OAuthOptions);注册中间件时,

客户端在调用

        var loginData =

  {            

    grant_type: 'password',            

    username: self.loginEmail(),            

    password: self.loginPassword()         };

        $.ajax({            

    type: 'POST',            

    url: '/Token',            

    data: loginData         }).done(

    function (data) {            

      self.user(data.userName);            

        // Cache the access token in session storage.            

      sessionStorage.setItem(tokenKey, data.access_token);        

    }).fail(showError);

出现404. Not Fount错误,这显然是/Token endpoint没有启作用。在网上找到是要把AllowInsecureHttp=true打开,应该是缺省用https协议,如果没有打开它,就没有办法调用/Token endpoint的服务