By: Stephen LAI user 30 Mar 2017 at 1:44 a.m. CDT

4 Responses
Stephen LAI gravatar
I am developing the SSO feature of a system using a Gluu server as the OP. Details of the system are listed as follows: ``` Programming Language: Ruby on Rails Ruby Gem of OpenID Connect: omniauth-openid-connect (https://github.com/jjbohn/omniauth-openid-connect) Authorization Endpoint: /oxauth/seam/resource/restv1/oxauth/authorize Token Endpoint: /oxauth/seam/resource/restv1/oxauth/token ``` However, the response (token) from the Gluu server causes a **JSON::JWS::VerificationFailed** exception (raised by the Ruby Gem at the system under development). Apparently, the default method of the Gluu server in signing the token is not compatible with the expectation of the Ruby Gem. Anything I have missed?

By Mohib Zico staff 30 Mar 2017 at 1:51 a.m. CDT

Mohib Zico gravatar
Stephen, Can you please share oxauth stack trace? It should have indication of this error.

By Stephen LAI user 30 Mar 2017 at 2:44 a.m. CDT

Stephen LAI gravatar
Seems that, I have not made my question clear enough. I have further described the problem being encountered by me.

By Stephen LAI user 30 Mar 2017 at 5:09 a.m. CDT

Stephen LAI gravatar
I just find the solution for my problem. The setting "discovery" of the Gem must be turned on (by default, it is turned off).

By Michael Schwartz Account Admin 30 Mar 2017 at 12:55 p.m. CDT

Michael Schwartz gravatar
Why don't you use oxd? We have a [Ruby](https://gluu.org/docs/oxd/libraries/ruby/) library and even a [Rails Example](https://gluu.org/docs/oxd/framework/rails/) Plus we support it... (whereas we don't support the library you referenced).