By: Aharon Judovin user 15 Feb 2022 at 1:52 p.m. CST

8 Responses
Aharon Judovin gravatar
May I re-open the discussion, mentioned in the subject? My testing environment probably is newer then the one used in 2017. The gluu 4.2.3 server runs on a Virtual Box with Ubuntu 20.04 workstation, but the client is an asp.net page, which simply sends two get requests to the authorization and token endpoints. I probably miss something very obvious in the configuration of the server or an open id client and hope that you'll be able to point me to the setting that I garbled. Here is the url for my first get request: ``` https://test.gluu.org/oxauth/restv1/authorize?scope=openid&response_type=code&client_id=9ce09670-c48c-4bd2-8313-edea4650189f&redirect_uri=http://localhost/OpenId/Default.aspx ``` and this is for the second one: ``` https://test.gluu.org/oxauth/restv1/token?grant_type=authorization_code&code=15fecea3-a3c1-4dcf-aef4-07060b22b076 ``` The gluu.zip contains two configurations, tail of oxauth.log and the har file. Thank you. Aharon.

By Aliaksandr Samuseu staff 15 Feb 2022 at 2:33 p.m. CST

Aliaksandr Samuseu gravatar
For reference, this ticket may be useful: https://support.gluu.org/authentication/4871/basic-authentication-failed-javalangexception-the-token-authentication-method-is-not-valid/#at74922

By Aharon Judovin user 15 Feb 2022 at 3:27 p.m. CST

Aharon Judovin gravatar
Good afternoon; I read through that discussion but didn't found in it neither the cause of the error nor the changes that allowed to admin labcloudinc to retrieve token from the token's endpoint.

By Mobarak Hosen Shakil staff 16 Feb 2022 at 12:06 a.m. CST

Mobarak Hosen Shakil gravatar
Hi Aharon Judovin, Can you please release `user-name` and `email` in scopes and test again? Regards ~ Shakil

By Aharon Judovin user 16 Feb 2022 at 7:54 p.m. CST

Aharon Judovin gravatar
Good evening; That helped and oxauth.log now has a record about client’s successful authentication. However gluu server returns error 405 now. Could you please tell where shall I look to fix it? Thank you. Aharon. ![](https://bot3.clearspider.com/download/openid_gluu.png)

By Mobarak Hosen Shakil staff 17 Feb 2022 at 10:04 p.m. CST

Mobarak Hosen Shakil gravatar
Hi Aharon, How did you configure OpenID config in your client side? Can you please share `oxauth.log` and `oxtrust.log`? Regards ~ Shakil

By Aharon Judovin user 18 Feb 2022 at 11:33 a.m. CST

Aharon Judovin gravatar
Good afternoon; I am not sure whether you asked about configuration of gluu server or a client's application that consumes its services? The [gluu.zip](https://bot3.clearspider.com/download/gluu.zip) file contains client's configuration along with the test aspx page. Please find oxauth.log and oxtrust.log in [this zip file](https://bot3.clearspider.com/download/authtrust.zip). Thank you for your help. Regards, Aharon.

By Mobarak Hosen Shakil staff 13 Mar 2022 at 11:18 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Aharon, It seems authentication works fine, no issues at `oxauth.log`. Please change below things in your OpenID client configurations. - **Grant types:** [authorization_code] - **Response types:** [code] I'm not sure why you are using all the **`Grant types`**. Please read the [docs](https://gluu.org/docs/gluu-server/4.3/admin-guide/openid-connect/#openid-connect-flows) to find which one is better for you. Regards ~ Shakil

By Aharon Judovin user 15 Mar 2022 at 10:55 a.m. CDT

Aharon Judovin gravatar
Thank you very much for your support. Kind regards, Aharon.