Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Koda Auth OmniAuth

This is middleware for Koda Content that allows you to secure your server using OmniAuth

Usage

You have to subclass Koda::Auth::OmniAuthIntegration and add in the strategies you require, so:

class MyAuthStrategy < Koda::Auth::OmniAuthIntegration
  use ::OmniAuth::Strategies::GitHub, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET']
  set :views, 'path/to/views'
end

Then use it as middleware on your Koda::Api

class MyApi < Koda::Api
  use MyAuthStrategy
end

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages