MCPcopy Create free account
hub / github.com/coder/coder / generateRegistrationAccessToken

Function generateRegistrationAccessToken

coderd/oauth2provider/registration.go:511–513  ·  view source on GitHub ↗

generateRegistrationAccessToken generates a registration access token for RFC 7592

()

Source from the content-addressed store, hash-verified

509
510// generateRegistrationAccessToken generates a registration access token for RFC 7592
511func generateRegistrationAccessToken() (plaintext string, hashed []byte, err error) {
512 return apikey.GenerateSecret(secretLength)
513}
514
515// writeOAuth2RegistrationError writes RFC 7591 compliant error responses
516func writeOAuth2RegistrationError(_ context.Context, rw http.ResponseWriter, status int, errorCode, description string) {

Callers 1

Calls 1

GenerateSecretFunction · 0.92

Tested by

no test coverage detected