Skip to content

[Question]: OAuth failed with api code 404 #14943

@histronger

Description

@histronger

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

Edtion of mine is Ragflow 0.25.2,which is deployed using docker compose. This is my "service_conf.yaml.template" :
`oauth:

oauth2:

display_name: OAuth2

client_id: ragflow

client_secret: ntBGcOxxxxxxxxxxxxxxxxxxxxxxxxs6iqS6OlYKfs

authorization_url: https://sso.xxx.edu.cn/cas/oauth2.0/authorize

token_url: https://sso.xxx.edu.cn/cas/oauth2.0/accessToken

userinfo_url: https://sso.xxx.edu.cn/cas/oauth2.0/profile

redirect_uri: http://ragflow.xxx.edu.cn/v1/user/oauth/callback/oauth2

And I have configured my SSO platform accordingly. However when I clicked the "Sign in with OAuth2" button in the login page ,I got: {"code":404,"data":null,"error":"Not Found","message":"Not Found: /v1/user/oauth/callback/oauth2"}`

I think there must be some problems with the nginx proxy, so could anybody help to figure out the problem? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions