Skip to content

Commit

Permalink
Release (#1128)
Browse files Browse the repository at this point in the history
fix auth0 authentication
  • Loading branch information
kuzdogan authored Jul 31, 2023
2 parents 1e4ad48 + 64209e6 commit cababb7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
Binary file modified environments/.env.secrets.gpg
Binary file not shown.
15 changes: 0 additions & 15 deletions src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,21 +255,6 @@ export class Server {
this.app.use("/", routes);
this.app.use(genericErrorHandler);
this.app.use(notFoundHandler);

/* this.app.get("/auth0", (req, res) => {
res.send(`
<!-- callback-cross-auth.html -->
<head>
<script src="https://cdn.auth0.com/js/auth0/9.18/auth0.min.js"></script>
<script type="text/javascript">
var webAuth = new auth0.WebAuth({
domain: 'sourcify-staging.eu.auth0.com',
clientID: 'BUtkg8OwkVgfbzyUDH0YlD1R8TO0a0nM'
});
</script>
</head>
`);
}); */
}

async listen(callback?: () => void) {
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function callWithAccessToken(callback) {
password: password,
audience: AUDIENCE,
client_id: CLIENT_ID,
scope: "openid profile",
scope: "openid profile offline_access",
};

fetch(`${AUTH0_DOMAIN}/oauth/token`, {
Expand Down
4 changes: 3 additions & 1 deletion ui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ ReactDOM.render(
clientId={AUTH0_CLIENTID}
authorizationParams={{
audience: AUTH0_AUDIENCE,
scope: "openid profile",
scope: "openid profile offline_access",
}}
useRefreshTokens={true}
cacheLocation="localstorage"
>
<App />
</Auth0Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const Create2Form = ({

setClientToken(accessToken);
} catch (e: any) {
console.log("test", e.message);
console.log(e.message);
}
};

Expand Down

0 comments on commit cababb7

Please sign in to comment.