Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvilleneuve committed Aug 7, 2024
1 parent 17cec13 commit 02b141b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Ruby

on:
push:
branches:
- main

pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
strategy:
matrix:
ruby:
- '3.2.2'

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rspec
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# AgentConnect
Cette Gem est un engine permet de faciliter l'implémentation d'AgentConnect dans un projet Rails.

[![Build](https://github.com/gip-inclusion/agent_connect_engine/actions/workflows/main.yml/badge.svg)](https://github.com/gip-inclusion/agent_connect_engine/actions)

This gem is a Rails engine simplyfing the integration of the AgentConnect in a Rails application.

## Installation
Add this line to your application's Gemfile:
Expand All @@ -23,6 +26,8 @@ AgentConnect.initialize! do |config|
config.client_id = ENV["AGENT_CONNECT_CLIENT_ID"]
config.client_secret = ENV["AGENT_CONNECT_CLIENT_SECRET"]
config.base_url = ENV["AGENT_CONNECT_BASE_URL"]

# This is optional, by default it will fallback to "HS256"
config.algorithm = ENV["AGENT_CONNECT_ALGORITHM"]

# Declare the callback that will be called after the user is authenticated
Expand Down

0 comments on commit 02b141b

Please sign in to comment.