Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: enable oauth2 client #1483

Closed
wants to merge 1 commit into from
Closed

Conversation

liut
Copy link
Contributor

@liut liut commented Apr 16, 2023

启用OAuth2验证登录,正在测试中

验证流程:

  1. /api/session: 检测到未登录时,重定向到 /auth/start
  2. /auth/start: 重定向到指定的OAuth2 服务提供者(SP
  3. SP页面中登录并授权,重定向到 /auth/cb
  4. /auth/cb: 通过授权code读取票据和用户信息,保存到cookie,验证成功

新的服务配置项,new settings for service

CLIENT_ID=
CLIENT_SECRET=
OAUTH_PREFIX=https://my-oauth-example.online
OAUTH_AUTHZ_PATH=/authorize
OAUTH_TOKEN_PATH=/token

@jacky1997
Copy link

我验证了一下,/api/session跳转出错,500错误,你这边有遇到么?排除了跨域问题。

@liut
Copy link
Contributor Author

liut commented May 10, 2023

我验证了一下,/api/session跳转出错,500错误,你这边有遇到么?排除了跨域问题。

没有遇到500的情况。
另外我只在公司的AuthSP实验过,正在找一个或多个合适的SP(比如Github之类)来测试。

@Oniokey
Copy link

Oniokey commented Jul 24, 2024

对于 OAuth 没有计划支持了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants