fixed ci4s oauth2接入

This commit is contained in:
2024-10-23 11:19:02 +08:00
parent c0da80139a
commit d038f30994
3 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ module Ci4s::Service
config.dig("oauth", "ci4s", "redirect_uri")
end
def oauth_url
"#{base_url}/oauth/authorize?client_id=#{client_id}&redirect_uri=#{URI.encode_www_form_component(redirect_uri)}&response_type=code&grant_type=authorization_code"
end
def request(method, url, params)
begin