We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6caf7f7 commit 718a00fCopy full SHA for 718a00f
lib/cadet/auth/providers/cas.ex
@@ -12,10 +12,13 @@ defmodule Cadet.Auth.Providers.CAS do
12
13
@type config :: %{service_validate_endpoint: String.t(), modules: %{}}
14
15
- @spec authorise(config(), Provider.code(), Provider.client_id(), Provider.redirect_uri()) ::
+ @spec authorise(config(), Provider.authorise_params()) ::
16
{:ok, %{token: Provider.token(), username: String.t()}}
17
| {:error, Provider.error(), String.t()}
18
- def authorise(config, code, _client_id, redirect_uri) do
+ def authorise(config, %{
19
+ code: code,
20
+ redirect_uri: redirect_uri
21
+ }) do
22
params = %{
23
ticket: code,
24
service: redirect_uri
0 commit comments