Discussions

Ask a Question
Back to all

Modification Oauth

Catégorie : Oauth

Endpoint : login [https://publicapi.nationsglory.fr/oauth/auth]

Il serait intéressant de pouvoir mettre une variable local dans le redirectURI

par exemple, voici un système afin de créer un système de login avec un bot discord et une api interne

Sequence Diagram: OAuth Authentication between a Discord Bot and an OAuth Server for NationsGlory - baba_33_mrt (@baba33mrt)

Sequence Diagram: OAuth Authentication between a Discord Bot and an OAuth Server for NationsGlory - baba_33_mrt (@baba33mrt)

Ainsi, dans le cas actuel il n'y a pas de moyen de vérifier que la personne ayant cliqué sur le bouton sur discord correspond à la réponse futur ou on commencerait à aller sur des fonctionnalités plus complexe.

je propose de pouvoir mettre une variable dans le redirectUri qui serait "localToekn={{token}}"

ainsi nous pouvons authentifier notre utilisateur sans créer 3 redirections peu utile.

Endpoint : PUR edit

il avait été demandé d'ajouter un endpoint afin d'edit son application (nom et redirectUri)