Skip to content
Snippets Groups Projects
Commit 8aa48810 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

front quase pront

parent 9590e513
No related branches found
No related tags found
No related merge requests found
Pipeline #38594 passed
...@@ -25,13 +25,15 @@ export default function LoginForm({ ...@@ -25,13 +25,15 @@ export default function LoginForm({
const handleCloseModalPasswd = () => setOpenModalPasswd(false); const handleCloseModalPasswd = () => setOpenModalPasswd(false);
const handleGovBr = () => { const handleGovBr = () => {
const state = window.crypto.randomUUID();
localStorage.setItem("govbr_state", state);
const params = { const params = {
response_type: "code", response_type: "code",
client_id: "mecredhomologa.c3sl.ufpr.br", client_id: "mecredhomologa.c3sl.ufpr.br",
scope: "openid email profile govbr_confiabilidades", scope: "openid email profile govbr_confiabilidades",
redirect_uri: "https://mecredhomologa.c3sl.ufpr.br", redirect_uri: "https://mecredhomologa.c3sl.ufpr.br/entrar",
nonce: "1121", nonce: "1121",
state: "olá mundo", state,
code_challenge: "Ra1GhTAFgJYB8p_uS8XfPnhBMcU1FDyZuIZ4akw5IAM", code_challenge: "Ra1GhTAFgJYB8p_uS8XfPnhBMcU1FDyZuIZ4akw5IAM",
code_challenge_method: "S256", code_challenge_method: "S256",
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment