Sha256: 951f5c691080065b09f943829f0a9acf1b5cdde52dbbcef594bf622e23a69c69

Contents?: true

Size: 1.54 KB

Versions: 13

Compression:

Stored size: 1.54 KB

Contents

# FusionAuth::FusionAuthClient

This gem is the Ruby client library that helps connect Ruby applications to the FusionAuth (https://fusionauth.io) Identity and User Management platform.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'fusionauth_client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install fusionauth_client

## Usage

Once the gem is installed, you can call FusionAuth APIs like this:

```ruby
# Create a user + registration
id = SecureRandom.uuid
client.register!(id, {
    :user => {
        :firstName => 'Ruby',
        :lastName => 'Client',
        :email => 'ruby.client.test@fusionauth.io',
        :password => 'password'
    },
    :registration => {
        :applicationId => application_id,
        :data => {
            :foo => 'bar'
        },
        :preferredLanguages => %w(en fr),
        :roles => %w(user)
    }
})

# Authenticate the user
response = client.login!({
    :loginId => 'ruby.client.test@fusionauth.io',
    :password => 'password',
    :applicationId => application_id
})
user = response.user
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The gem is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fusionauth_client-1.12.1 README.md
fusionauth_client-1.12.0 README.md
fusionauth_client-1.11.0 README.md
fusionauth_client-1.10.0 README.md
fusionauth_client-1.9.0 README.md
fusionauth_client-1.8.0.pre.RC.1 README.md
fusionauth_client-1.7.4 README.md
fusionauth_client-1.7.0 README.md
fusionauth_client-1.6.0 README.md
fusionauth_client-1.5.0 README.md
fusionauth_client-1.4.0 README.md
fusionauth_client-1.3.0 README.md
fusionauth_client-1.1.0 README.md