-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #17 provid example configs and better explanation for config items
- Loading branch information
Showing
6 changed files
with
170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# lasso config | ||
# bare minimum to get lasso running with github | ||
|
||
lasso: | ||
# domains: | ||
# valid domains that the jwt cookies can be set into | ||
# the callback_urls will be to these domains | ||
# for github that's only one domain since they only allow one callback URL | ||
# https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#redirect-urls | ||
# each of these domains must serve the url https://login.$domains[0] https://login.$domains[1] ... | ||
domains: | ||
- yourothersite.io | ||
|
||
# set allowAllUsers: true to use Lasso to just accept anyone who can authenticate at GitHub | ||
# allowAllUsers: true | ||
|
||
oauth: | ||
# create a new OAuth application at: | ||
# https://github.com/settings/applications/new | ||
provider: github | ||
client_id: xxxxxxxxxxxxxxxxxxxx | ||
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
# these GitHub OAuth defaults are set for you.. | ||
# from https://godoc.org/golang.org/x/oauth2/github | ||
# auth_url: https://github.com/login/oauth/authorize | ||
# token_url: https://github.com/login/oauth/access_token | ||
# scopes: | ||
# - user | ||
# user_info_url: https://api.github.com/user?access_token= |
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,31 @@ | ||
# lasso config | ||
# bare minimum to get lasso running with github enterprise | ||
# see config.yml_example for all options | ||
|
||
lasso: | ||
# domains: | ||
# valid domains that the jwt cookies can be set into | ||
# each of these domains must serve the url https://login.$domains[0] https://login.$domains[1] ... | ||
# the callback_urls will be to these domains | ||
domains: | ||
- yoursite.com | ||
- yourothersite.io | ||
|
||
# - OR - | ||
# instead of setting specific domains you may prefer to allow all users... | ||
# set allowAllUsers: true to use Lasso to just accept anyone who can authenticate at the configured provider | ||
# allowAllUsers: true | ||
|
||
oauth: | ||
# create a new OAuth application at: | ||
# https://githubenterprise.yoursite.com/settings/applications/new | ||
provider: github | ||
client_id: xxxxxxxxxxxxxxxxxxxx | ||
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
auth_url: https://githubenterprise.yoursite.com/login/oauth/authorize | ||
token_url: https://githubenterprise.yoursite.com/login/oauth/access_token | ||
user_info_url: https://githubenterprise.yoursite.com/user?access_token= | ||
|
||
# these GitHub OAuth defaults are set for you.. | ||
# scopes: | ||
# - user |
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,20 @@ | ||
|
||
# lasso config | ||
# bare minimum to get lasso running with google | ||
|
||
lasso: | ||
domains: | ||
- yourdomain.com | ||
- yourotherdomain.com | ||
|
||
oauth: | ||
provider: google | ||
# get credentials from... | ||
# https://console.developers.google.com/apis/credentials | ||
client_id: xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com | ||
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx | ||
callback_urls: | ||
- http://yourdomain.com:9090/auth | ||
- http://yourotherdomain.com:9090/auth | ||
preferredDomain: yourdomain.com | ||
# endpoints set from https://godoc.org/golang.org/x/oauth2/google |
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,24 @@ | ||
|
||
# lasso config | ||
# bare minimum to get lasso running with IndieAuth | ||
|
||
lasso: | ||
# domains: | ||
# valid domains that the jwt cookies can be set into | ||
# the callback_urls will be to these domains | ||
domains: | ||
- yourdomain.com | ||
|
||
# set allowAllUsers: true to use Lasso to just accept anyone who can authenticate at the configured provider | ||
allowAllUsers: true | ||
|
||
# Setting publicAccess: true will accept all requests, even without a cookie. | ||
publicAccess: true | ||
|
||
oauth: | ||
# IndieAuth | ||
# https://indielogin.com/api | ||
provider: indieauth | ||
client_id: http://yourdomain.com | ||
auth_url: https://indielogin.com/auth | ||
callback_url: http://lasso.yourdomain.com:9090/auth |
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,31 @@ | ||
|
||
# lasso config | ||
# bare minimum to get lasso running with OpenID Connect (such as okta) | ||
|
||
lasso: | ||
# domains: | ||
# valid domains that the jwt cookies can be set into | ||
# the callback_urls will be to these domains | ||
domains: | ||
- yourdomain.com | ||
- yourotherdomain.com | ||
|
||
# - OR - | ||
# instead of setting specific domains you may prefer to allow all users... | ||
# set allowAllUsers: true to use Lasso to just accept anyone who can authenticate at the configured provider | ||
# allowAllUsers: true | ||
|
||
oauth: | ||
# Generic OpenID Connect | ||
# including okta | ||
provider: oidc | ||
client_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx | ||
auth_url: https://{yourOktaDomain}/oauth2/default/v1/authorize | ||
token_url: https://{yourOktaDomain}/oauth2/default/v1/token | ||
user_info_url: https://{yourOktaDomain}/oauth2/default/v1/userinfo | ||
scopes: | ||
- openid | ||
- profile | ||
callback_url: http://lasso.yourdomain.com:9090/auth |