Skip to content

Commit

Permalink
Update outlook.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Aug 22, 2024
1 parent 7760067 commit 8702893
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/discourse_events/auth/outlook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ def base_url

def authorization_url(state)
uri = URI.parse("#{base_url}/common/oauth2/v2.0/authorize")
uri.query = URI.encode_www_form(
client_id: provider.client_id,
response_type: "code",
redirect_uri: provider.redirect_uri,
state: state,
scope: "Calendars.ReadWrite"
)
uri.to_s
uri.query =
URI.encode_www_form(
client_id: provider.client_id,
response_type: "code",
redirect_uri: provider.redirect_uri,
state: state,
scope: "Calendars.ReadWrite",
)
uri.to_s
end

def request_token(code)
Expand Down

0 comments on commit 8702893

Please sign in to comment.