Skip to content

Name expired and missing passwords, log the Microsoft code and return the session cookies - #79

Merged
PianoNic merged 2 commits into
mainfrom
feature/78_SignInErrors
Nov 6, 2026
Merged

PianoNic merged 2 commits into
mainfrom
feature/78_SignInErrors

Conversation

@PianoNic

@PianoNic PianoNic commented Nov 6, 2026

Copy link
Copy Markdown
Member

Added password_expired and no_password, logged the AADSTS number on every failed sign-in, returned the Microsoft session cookies from a completed sign-in, and moved to ms-entrance 2.1.0.

Closes #78

Entrance 2.1.0 raises PasswordExpired (AADSTS50055, 50144) and NoPassword (50056) instead of InvalidCredentials. They now end a sign-in with password_expired or no_password and their own message. Neither counts against the wrong-password limiter or replaces an earlier sign-in.

Every failed sign-in logs the AADSTS number Microsoft gave, digits only.
A completed password sign-in now answers session_cookies next to the refresh token: the cookies of Microsoft's sign-in hosts from Entrance's Broker, in the shape the app's WebView capture sends. Schulnetz needs them to sign in with a Microsoft account linked on the web. They are never logged.
@PianoNic PianoNic added the enhancement New feature or request label Nov 6, 2026
@PianoNic
PianoNic merged commit 9ba12fb into main Nov 6, 2026
@PianoNic
PianoNic deleted the feature/78_SignInErrors branch November 6, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Name expired and missing passwords, log the Microsoft code and return the session cookies

1 participant