newCode enforces the code exchanged is actually a valid code created by the IDP.
(state string, challenge string)
| 825 | // newCode enforces the code exchanged is actually a valid code |
| 826 | // created by the IDP. |
| 827 | func (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. |
no test coverage detected