-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create SAML and OAuth URL creating functions with client request orig…
…in to resolve relative URLs from config against it
- Loading branch information
Johannes Koch
committed
Jun 29, 2021
1 parent
dda8897
commit 807dd34
Showing
10 changed files
with
112 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
server "client" { | ||
api { | ||
endpoint "/cb" { | ||
access_control = ["ac"] | ||
response { | ||
json_body = request.context.ac | ||
} | ||
} | ||
} | ||
} | ||
definitions { | ||
beta_oauth2 "ac" { | ||
grant_type = "authorization_code" | ||
redirect_uri = "/cb" # value is not checked | ||
authorization_endpoint = "https://authorization.server/oauth2/authorize" | ||
token_endpoint = "{{.asOrigin}}/token" | ||
client_id = "foo" | ||
client_secret = "etbinbp4in" | ||
pkce { | ||
code_challenge_method = "S256" | ||
code_verifier_value = request.cookies.pkcecv | ||
} | ||
} | ||
} | ||
settings { | ||
accept_forwarded_url = [ "proto", "host" ] | ||
} |