feat(authorize): add implicit authorize flow
This commit is contained in:
parent
fa31485e44
commit
f0fad9a90a
4 changed files with 54 additions and 2 deletions
28
config.example.toml
Normal file
28
config.example.toml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[instance]
|
||||
base_uri = "http://localhost:8085"
|
||||
name = "Example org"
|
||||
logo_uri = "https://example.org/logo.png"
|
||||
|
||||
[[applications]]
|
||||
slug = "demo_app"
|
||||
name = "Demo app"
|
||||
description = "A super application where you can do everything you want."
|
||||
client_id = "a1785786-8be1-443c-9a6f-35feed703609"
|
||||
client_secret = "49c6c16a-0a8a-4981-a60d-5cb96582cc1a"
|
||||
allowed_redirect_uris = [
|
||||
"http://localhost:9090/authorize",
|
||||
"http://localhost:9876/callback"
|
||||
]
|
||||
authorize_flow = "implicit"
|
||||
|
||||
[[roles]]
|
||||
slug = "basic"
|
||||
name = "Basic"
|
||||
description = "Basic user"
|
||||
default = true
|
||||
|
||||
[[roles]]
|
||||
slug = "admin"
|
||||
name = "Administrator"
|
||||
description = "Full power on organization instance"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue