diff --git a/backend/src/app/auth/oidc.clj b/backend/src/app/auth/oidc.clj index 2ac5ab830..049b95c17 100644 --- a/backend/src/app/auth/oidc.clj +++ b/backend/src/app/auth/oidc.clj @@ -567,7 +567,6 @@ (tokens/generate (::setup/props cfg) {:iss :auth :exp (dt/in-future "15m") - :props (:props info) :profile-id (:id profile)})) props (audit/profile->props profile) context (d/without-nils {:external-session-id (:external-session-id info)})] diff --git a/backend/src/app/rpc/commands/verify_token.clj b/backend/src/app/rpc/commands/verify_token.clj index 67b5425b7..6ed6d5814 100644 --- a/backend/src/app/rpc/commands/verify_token.clj +++ b/backend/src/app/rpc/commands/verify_token.clj @@ -30,7 +30,7 @@ (def ^:private schema:verify-token [:map {:title "verify-token"} - [:token [:string {:max 1000}]]]) + [:token [:string {:max 5000}]]]) (sv/defmethod ::verify-token {::rpc/auth false @@ -82,16 +82,8 @@ (defmethod process-token :auth [{:keys [conn] :as cfg} _params {:keys [profile-id] :as claims}] - (let [profile (profile/get-profile conn profile-id {::sql/for-update true}) - props (merge (:props profile) - (:props claims))] - (when (not= props (:props profile)) - (db/update! conn :profile - {:props (db/tjson props)} - {:id profile-id})) - - (let [profile (assoc profile :props props)] - (assoc claims :profile profile)))) + (let [profile (profile/get-profile conn profile-id)] + (assoc claims :profile profile))) ;; --- Team Invitation diff --git a/frontend/src/app/main/data/users.cljs b/frontend/src/app/main/data/users.cljs index b3c4e8f05..48e4513c0 100644 --- a/frontend/src/app/main/data/users.cljs +++ b/frontend/src/app/main/data/users.cljs @@ -148,7 +148,9 @@ (if (and (= :authorization (:type data)) (= :challenge-required (:code data))) (let [path (rt/get-current-path) - href (str "/challenge.html?redirect=" path)] + href (-> path + (str "/challenge.html?redirect=") + (js/encodeURIComponent))] (rx/of (rt/nav-raw href))) (rx/throw cause))))