Skip to content

Commit

Permalink
Fix errors post-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Sep 25, 2024
1 parent 6caf7f7 commit 718a00f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cadet/auth/providers/cas.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ defmodule Cadet.Auth.Providers.CAS do

@type config :: %{service_validate_endpoint: String.t(), modules: %{}}

@spec authorise(config(), Provider.code(), Provider.client_id(), Provider.redirect_uri()) ::
@spec authorise(config(), Provider.authorise_params()) ::
{:ok, %{token: Provider.token(), username: String.t()}}
| {:error, Provider.error(), String.t()}
def authorise(config, code, _client_id, redirect_uri) do
def authorise(config, %{
code: code,
redirect_uri: redirect_uri
}) do
params = %{
ticket: code,
service: redirect_uri
Expand Down

0 comments on commit 718a00f

Please sign in to comment.