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

Method newCode

coderd/coderdtest/oidctest/idp.go:827–832  ·  view source on GitHub ↗

newCode enforces the code exchanged is actually a valid code created by the IDP.

(state string, challenge string)

Source from the content-addressed store, hash-verified

825// newCode enforces the code exchanged is actually a valid code
826// created by the IDP.
827func (f *FakeIDP) newCode(state string, challenge string) string {
828 code := uuid.NewString()
829 f.codeToStateMap.Store(code, state)
830 f.codeToChallengeMap.Store(code, challenge)
831 return code
832}
833
834// newToken enforces the access token exchanged is actually a valid access token
835// created by the IDP.

Callers 2

httpHandlerMethod · 0.95

Calls 1

StoreMethod · 0.45

Tested by

no test coverage detected