Comments (3)
额~,
这里返回的信息是没问题的,因为你方法的接口是受保护的,没有权限访问资源。
要访问受保护的资源必须经过认证中心认证,获取到accessToken,在访问资源接口的时候在请求头带上accessToken才可以访问。
from springcloud-oauth2.
这里返回的信息是没问题的,因为你方法的接口是受保护的,没有权限访问资源。
我以为能自动跳到认证服务的,需求也是这样
from springcloud-oauth2.
这里返回的信息是没问题的,因为你方法的接口是受保护的,没有权限访问资源。
我以为能自动跳到认证服务的,需求也是这样
你们项目是前后台分离的吗?如果是的话可以让前端的写一个登录的页面,然后然后如果访问的接口返回401就跳转登录页
from springcloud-oauth2.
Related Issues (12)
- 请问eureka改成nacos需要改什么配置吗?
- 将springboot版本号提升到2.3.2.RELEASE以及springcloud版本号提升到Hoxton.SR9请求获取code接口,/login就404了请问怎么回事?
- 请问怎么登录?
- 请教下大佬 HOT 1
- 密码模式图下半截没截全 HOT 7
- 资源服务器对 scope 作用域没有控制 HOT 4
- 用户禁用token更新问题 HOT 7
- 自定义验证码模式不通 HOT 19
- 自定义授权页 HOT 11
- 获取不到授权码 HOT 9
- oauth/token 提交,密码加密如何配置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springcloud-oauth2.