Skip to content

Commit

Permalink
feat: add teams information to AuthRequest model
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfonseca committed May 6, 2024
1 parent b37b220 commit 002b181
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions internal/app/traefik-github-oauth-server/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ type ResponseGenerateOAuthPageURL struct {
}

type ResponseGetAuthResult struct {
RedirectURI string `json:"redirect_uri"`
GitHubUserID string `json:"github_user_id"`
GitHubUserLogin string `json:"github_user_login"`
RedirectURI string `json:"redirect_uri"`
GitHubUserID string `json:"github_user_id"`
GitHubUserLogin string `json:"github_user_login"`
GithubTeamIDs []string `json:"github_team_ids"`
}

type ResponseError struct {
Message string `json:"msg"`
}

type AuthRequest struct {
RedirectURI string `json:"redirect_uri"`
AuthURL string `json:"auth_url"`
GitHubUserID string `json:"github_user_id"`
GitHubUserLogin string `json:"github_user_login"`
RedirectURI string `json:"redirect_uri"`
AuthURL string `json:"auth_url"`
GitHubUserID string `json:"github_user_id"`
GitHubUserLogin string `json:"github_user_login"`
GithubTeamIDs []string `json:"github_team_ids"`
}

0 comments on commit 002b181

Please sign in to comment.