mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 05:13:10 +12:00
improvement: add icon
field to OAuth2 strategy. (#100)
This commit is contained in:
parent
02fe19091b
commit
74dfbf7595
2 changed files with 6 additions and 3 deletions
|
@ -700,7 +700,8 @@ defmodule AshAuthentication.Dsl do
|
|||
auth_method: :client_secret_post,
|
||||
authorize_path: "/authorize",
|
||||
token_path: "/oauth/token",
|
||||
user_path: "/userinfo"
|
||||
user_path: "/userinfo",
|
||||
icon: :auth0
|
||||
]
|
||||
})
|
||||
end
|
||||
|
|
|
@ -237,7 +237,8 @@ defmodule AshAuthentication.Strategy.OAuth2 do
|
|||
identity_relationship_user_id_attribute: :user_id,
|
||||
provider: :oauth2,
|
||||
name: nil,
|
||||
resource: nil
|
||||
resource: nil,
|
||||
icon: nil
|
||||
|
||||
alias AshAuthentication.Strategy.OAuth2
|
||||
|
||||
|
@ -267,6 +268,7 @@ defmodule AshAuthentication.Strategy.OAuth2 do
|
|||
identity_relationship_user_id_attribute: atom,
|
||||
provider: atom,
|
||||
name: atom,
|
||||
resource: module
|
||||
resource: module,
|
||||
icon: nil | atom
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue