mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-06 00:10:52 +08:00
15 lines
460 B
Ruby
15 lines
460 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../microsoft_auth_revoker"
|
|
|
|
desc <<~DESC
|
|
A rake task to remove microsoft as an authentication provider, log out, deactivate and remove all API keys for all
|
|
users accounts that have used Microsoft as an authentication provider.
|
|
DESC
|
|
task "microsoft_auth:revoke" => :environment do
|
|
MicrosoftAuthRevoker.revoke
|
|
end
|
|
|
|
task "microsoft_auth:log_out_users" => :environment do
|
|
MicrosoftAuthRevoker.log_out_users
|
|
end
|