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
Check out our [official Ruby SDK documentation](https://docs.authsignal.com/sdks/server/ruby), and [Ruby on Rails Quickstart Guide](https://docs.authsignal.com/quickstarts/ruby-on-rails).
3
+
# Authsignal Ruby SDK
4
+
5
+
The Authsignal Ruby library for server-side applications.
4
6
5
7
## Installation
6
8
@@ -10,72 +12,11 @@ Add this line to your application's Gemfile:
10
12
gem "authsignal-ruby"
11
13
```
12
14
13
-
And then execute:
14
-
15
-
$ bundle install
16
-
17
-
Or install it yourself as:
18
-
19
-
$ gem install authsignal-ruby
20
-
21
-
## Initialization
22
-
23
-
Initialize the Authsignal Ruby SDK, ensuring you do not hard code the Authsignal Secret Key, always keep this safe.
24
-
25
-
In Ruby on Rails, you would typically place this code block in a file like `config/initializers/authsignal.rb`
# error_description: '/body/oobChannel must be equal to one of the allowed values'
98
-
# }
37
+
{
38
+
"error": "invalid_request",
39
+
"errorCode": "invalid_request",
40
+
"errorDescription": "body.verificationMethod must be equal to one of the allowed values - allowedValues: AUTHENTICATOR_APP,EMAIL_MAGIC_LINK,EMAIL_OTP,SMS"
41
+
}
99
42
```
100
43
101
44
All methods have a bang (!) counterpart that raises an Authsignal::ApiError if the request fails.
# <Authsignal::ApiError: AuthsignalError: 400 - /body/oobChannel must be equal to one of the allowed values. status_code: 401, error_code: invalid_request, error_description: /body/oobChannel must be equal to one of the allowed values.
113
-
```
114
-
115
-
## Development
116
-
117
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` or `bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
118
-
119
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
120
-
121
-
Log request/response against test server: `Authsignal.configuration.debug = true`
122
-
123
-
## License
124
-
125
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
58
+
<Authsignal::ApiError:AuthsignalError:400- body.verificationMethod must be equal to one of the allowed values -allowedValues:AUTHENTICATOR_APP,EMAIL_MAGIC_LINK,EMAIL_OTP,SMS.
0 commit comments