You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm working through the ruby sso example app and could use some help. I set up Google OAuth credentials, configured my WorkOS dashboard, and got the app running. The login button sends me to Google, which sends me back to localhost, which explodes with: Parameter 'organization_id': Can't set WorkOS::Types::ProfileStruct.organization_id to nil
further down the stack: response = client.request(post_request(path: '/sso/token', body: body)) (code) returns 422 Unprocessable Entity when I ran it in a debugger
The app does work with your Okta dummy org, which suggests I've got the fundamentals in place. Any ideas on how to get Google OAuth working?
The text was updated successfully, but these errors were encountered:
It looks like example app is using an older version of the WorkOS Ruby SDK; the organization_id on the Profile is now nullable, which is supported starting in v2.0.0 of the SDK.
You should be able to upgrade to the latest version (v2.2.0 at time of writing) to get past this error.
We'll take a look at getting these examples updated with the latest version of the SDK as well.
Hey, I'm working through the ruby sso example app and could use some help. I set up Google OAuth credentials, configured my WorkOS dashboard, and got the app running. The login button sends me to Google, which sends me back to localhost, which explodes with:
Parameter 'organization_id': Can't set WorkOS::Types::ProfileStruct.organization_id to nil
this is in the
/auth
handler: https://github.com/workos/ruby-example-applications/blob/main/ruby-sso-example/app.rb#L50further down the stack:
response = client.request(post_request(path: '/sso/token', body: body))
(code) returns422 Unprocessable Entity
when I ran it in a debuggerThe app does work with your Okta dummy org, which suggests I've got the fundamentals in place. Any ideas on how to get Google OAuth working?
The text was updated successfully, but these errors were encountered: