Skip to content

New site etu#188

Draft
Zalk0 wants to merge 6 commits intomainfrom
new-site-etu
Draft

New site etu#188
Zalk0 wants to merge 6 commits intomainfrom
new-site-etu

Conversation

@Zalk0
Copy link
Copy Markdown
Collaborator

@Zalk0 Zalk0 commented May 19, 2025

  • add success template for role assignment
  • WIP auth with new student website
  • set server url in Dockerfile
  • remove PR creation hourly limit
  • fix UeCog not called

@Zalk0 Zalk0 marked this pull request as draft May 19, 2025 15:45
Comment thread etuutt_bot/routes/home.py
# Unauthorized if not code in query string
api_settings: ApiConfig = req.app["bot"].settings.etu_api
if not req.query.get("code") or req.query.get("state") != req.app["api_state"]:
if not (token := req.query.get("token")):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le token est vraiment transmis dans les query params ?

Copy link
Copy Markdown
Collaborator Author

@Zalk0 Zalk0 May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le client est censé revenir du site étu pour arriver sur cette page, hors le site étu crée l'URL de redirection qui est executée dans le navigateur de l'utilisateur donc on est obligé de la faire en GET

Comment thread etuutt_bot/routes/login.py Outdated
Comment thread etuutt_bot/routes/role.py
try:
resp = (await response.json()).get("data")
resp = await response.json()
api_user = ApiUserSchema.model_validate(resp)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vu le DTO de détails utilisateur, cette validation ne devrait plus passer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui mais déjà j'essayais d'arriver à avoir une réponse de l'API qui ne me dit pas que je ne suis pas autorisé 😭
J'ai enfin réussi, mais maintenant il va falloir que j'attende qu'ils remodifient l'API car ils vont modifier les routes utilisateurs et UE...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ayaya. Bah écoute, je repasserai plus tard

Comment thread .github/renovate.json Outdated
Don't know where to go for home route yet
@Zalk0 Zalk0 force-pushed the main branch 2 times, most recently from 2f97013 to 9c755a6 Compare April 15, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants