Skip to content

Oauth2 does not seem to work /signin/success?jwt=very_long_jwt_token returns HTTP 400 saying that jwt is missing (but is not as you can see) #419

@distributev

Description

@distributev

Hello,
Thank you again for scoold it loooks as a useful software.
I'm trying to configure scoold with Oauth2 using a self hosted oauth server. I believe I have correctly configured things since I am able to see many things related with oauth flow working -

However just after login I get an HTTP 400 error and the scoold DEBUG logs show

2023-11-29 15:25:27 [DEBUG] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'jwt' for method parameter type String is not present]
2023-11-29 15:25:27 [DEBUG] Completed 400 BAD_REQUEST

however the URL of the browser for the page which show this error contains a the jwt get argument like this

https://www.example.org/qa/signin/success?jwt=very_long_jwt_token
Here is how scoold-application.conf looks

#############  CORE  #############

scoold.para_access_key = "app:scoold"
scoold.para_secret_key = "123"
scoold.para_endpoint = "https://para.example.org"
scoold.app_secret_key = "456"


scoold.host_url = "https://www.example.org"

#############  MISCELLANEOUS  #############

scoold.autoinit.para_config_file = "/scoold/para-application.conf"

scoold.context_path = "/qa"
scoold.admins = "john06example.org"

####### OAUTH2 ##########

# minimal setup
scoold.oa2_app_id = "789"
scoold.oa2_secret = "101112"
scoold.security.oauth.authz_url = "https://oauth-server.example.org/oauth/authorize"
scoold.security.oauth.token_url = "https://oauth-server.example.org/oauth/token"
scoold.security.oauth.profile_url = "https://oauth-server.example.org/oauth/me"
scoold.security.oauth.scope = "openid email profile"

and here is how para-application.conf looks

para.root_access_key = "app:scoold"
para.root_secret_key = "131415"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions