Skip to content

Wrong Server URL causes misleading Oauth error #657

Closed

Description

@jnweiger

Seen with OpenCloud Beta OpenCloud Beta 3.0.0.1828 (from CI)

My server is at https://oc.jwqa.de:9200
Instead of using this URL as is, I try to connect the client to connect the client to oc.jwqa.de:9200/foo

Image

No browser window opens, but a message appears:

Oauth2 authentication requires a secured connection

  • This message is misleading. The connection is secure. BAD
  • The message is untranslated. It should be in German locale. BAD
Image

Expected behaviour: "Cannot connect to server. Please check the URL." (in the correct locale)

Using the Copy URL button, I get only query parameters starting with ? without the actual URL in front:
?response_type=code&client_id=OpenCloudDesktop&redirect_uri=http://127.0.0.1:45457&code_challenge=ZKn-16eVVm9tB...

Normally this URL looks like:
https://oc.jwqa.de:9200/signin/v1/identifier/_/authorize?response_type=code&client_id=OpenCloudDesktop&redirect_uri=http://127.0.0.1:37271&code_challenge=TdJFo4qh6Kh...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions