Browse Source

use main domain for auth; log for ticket endpoint

main
Benjamin Atkin 5 years ago
parent
commit
385156ae64
  1. 5
      app.js
  2. 6
      static/index.html

5
app.js

@ -54,7 +54,12 @@ async function appendNote(content) {
});
}
router.post('/indie_ticket', async (ctx, next) => {
console.log(JSON.stringify({ticket: ctx.request.body}, null, 2));
});
router.post('/micropub', async (ctx, next) => {
console.log('Handling Micropub request');
const resp = await fetch('https://tokens.indieauth.com/token', {
method: 'GET',
headers: {

6
static/index.html

@ -1,10 +1,10 @@
<!doctype html>
<head>
<title>Notes</title>
<link rel="me" href="https://github.com/benatkin">
<link rel="micropub" href="https://notes.benatkin.com/micropub">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://benatkin.com/wp-json/indieauth/1.0/token">
<link rel="authorization_endpoint" href="https://benatkin.com/wp-json/indieauth/1.0/auth">
<link rel="me" href="https://benatkin.com/">
<link rel="stylesheet" href="/style.css">
<script type="module" src="/app.js"></script>
<body>

Loading…
Cancel
Save