llaoj / oauth2nsso Goto Github PK
View Code? Open in Web Editor NEWA standalone OAuth2 & SSO server based on go-oauth2
Home Page: https://blog.llaoj.cn/docs/oauth2nsso/
License: MIT License
A standalone OAuth2 & SSO server based on go-oauth2
Home Page: https://blog.llaoj.cn/docs/oauth2nsso/
License: MIT License
例如client1的token的SigningMethod是RS256,client2的是HS256,这种情况该怎么搞。
mgr.MapAccessGenerate(generates.NewJWTAccessGenerate("", []byte(config.Get().OAuth2.JWTSignedKey), jwt.SigningMethodHS512))
clientStore := store.NewClientStore()
for _, v := range config.Get().OAuth2.Client {
clientStore.Set(v.ID, &models.Client{
ID: v.ID,
Secret: v.Secret,
Domain: v.Domain,
})
}
mgr.MapClientStorage(clientStore)
您好 想问您一下这个access_token 里边得payload 怎么自定义呢
2、302跳转,返回code
http://localhost:9093/cb?code=XUNKO4OPPROWAPFKEWNZWA&state=xyz
3、使用code交换token 出现如下错误
{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server"}
axios 请求代码如下: code 是返回的 code
http({ method: 'post', url: '/api2/token', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, auth: { 'username': 'test_client_1', 'password': 'test_secret_1', }, data: { 'grant_type': 'authorization_code', 'code': code, 'redirect_uri': 'http://localhost:8080/user/login' } })
verify一直验证失败
请问一下,logoutHandler中只是删除了session,那对于原来客户端申请到的token,如果没有超时,是不是还能起作用?
generates.NewJWTAccessGenerate生成的token怎么自定义claims
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.