Skip to content

Commit

Permalink
Improve RequestScopes comment
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Apr 1, 2024
1 parent b5675aa commit 53afa47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func main() {
Issuer: "https://accounts.sourcegraph.com",
ClientID: os.Getenv("SAMS_CLIENT_ID"),
ClientSecret: os.Getenv("SAMS_CLIENT_SECRET"),
// RequestScopes needs to include all the scopes that the service needs to
// access on behalf of the user. Scopes that are only used for Clients API are
// not needed here.
RequestScopes: []scopes.Scope{scopes.OpenID, scopes.Email, scopes.Profile},
RedirectURI: os.Getenv("SAMS_REDIRECT_URI"),
FailureHandler: samsauth.DefaultFailureHandler,
Expand Down

0 comments on commit 53afa47

Please sign in to comment.