Drop omniauth for openid_connect gem

This commit is contained in:
Dan Milne
2025-11-09 20:53:20 +11:00
parent c9e2992fe0
commit ab5f83ab97
10 changed files with 168 additions and 112 deletions

View File

@@ -4,9 +4,9 @@ Rails.application.routes.draw do
resource :session
resource :password
# OIDC authentication routes
get "/auth/failure", to: "omniauth_callbacks#failure"
get "/auth/:provider/callback", to: "omniauth_callbacks#oidc"
# OIDC authentication routes (explicit, no middleware)
post "/auth/oidc", to: "oidc_auth#authorize"
get "/auth/oidc/callback", to: "oidc_auth#callback"
# Admin user management (admin only)
resources :users, only: [:index, :show, :edit, :update]