Giter Site home page Giter Site logo

wikijs-roblox-proxy's Introduction

mastodon-api-proxy

A proxy to Mastodon API that adds a fake_email field to the Account object returned by verify_credentials.

Every other response, even Account responses from other endpoints, are left untouched.

Usage

Run the container. BACKEND_URL is expected to point to the real mastodon URL. DOMAIN is the email domain used to form fake_email, in the form of {acct}@{DOMAIN}, where acct is the acct field returned by Mastodon.

Optionally, MIN_AGE allows defining a minimum account age (time since the account was created, not the age of the person using the account). If defined, requests to verify_credentials for accounts below the minimum age will return 403 Forbidden.

Why?

requarks/wiki#7037

So how do I use this with wiki.js?

On wiki.js:

  • Use your usual mastodon url for Authorization Endpoint URL, e.g. https://your.instance/oauth/authorize
  • Use your usual mastodon url for Token Endpoint URL, e.g. https://your.instance/oauth/token
  • Use the URL of this thing for User info Endpoint URL, e.g. https://api-proxy.your.instance/api/v1/accounts/verify_credentials. It must be an https URL or mastodon will attempt to redirect it to https.
  • As ID Claim, Display Name Claim and Email Claim use id, display_name and fake_email respectively. fake_email is what this proxy adds.

On your mastodon instance:

  • Add the domain where this thing listens (e.g. api-proxy.your.instance) to the ALTERNATE_DOMAINS environment variable for mastodon-web.

And you're good to go!

wikijs-roblox-proxy's People

Contributors

roobre avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.