(state string, opts ...oauth2.AuthCodeOption)
| 783 | } |
| 784 | |
| 785 | func (c *GithubOAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string { |
| 786 | if !c.DeviceFlowEnabled { |
| 787 | return c.OAuth2Config.AuthCodeURL(state, opts...) |
| 788 | } |
| 789 | // This is an absolute path in the Coder app. The device flow is orchestrated |
| 790 | // by the Coder frontend, so we need to redirect the user to the device flow page. |
| 791 | return "/login/device?state=" + state |
| 792 | } |
| 793 | |
| 794 | // @Summary Get authentication methods |
| 795 | // @ID get-authentication-methods |
nothing calls this directly
no test coverage detected