♻️ Used domain IsEqual method for ClientID instead plain strings
/ docker (push) Successful in 1m17s Details

This commit is contained in:
Maxim Lebedev 2024-05-08 16:10:19 +05:00
parent dc7746a6c0
commit 7d0635c87a
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func (h *Handler) handleCallback(w http.ResponseWriter, r *http.Request) {
// TODO(toby3d): load and check state
if req.Iss.String() != h.client.ID.String() {
if !req.Iss.IsEqual(h.client.ID) {
w.WriteHeader(http.StatusBadRequest)
layout.WriteTemplate(w, &template.Error{
BaseOf: baseOf,