MCPcopy Index your code
hub / github.com/coder/coder / AuthCodeURL

Method AuthCodeURL

coderd/userauth.go:785–792  ·  view source on GitHub ↗
(state string, opts ...oauth2.AuthCodeOption)

Source from the content-addressed store, hash-verified

783}
784
785func (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

Callers

nothing calls this directly

Calls 1

AuthCodeURLMethod · 0.65

Tested by

no test coverage detected