Skip to content

New flow changes [supersedes #100] - #110

Draft
craftxbox wants to merge 15 commits into
unitystation:developfrom
craftxbox:NewFlowChanges
Draft

New flow changes [supersedes #100]#110
craftxbox wants to merge 15 commits into
unitystation:developfrom
craftxbox:NewFlowChanges

Conversation

@craftxbox

Copy link
Copy Markdown

Rather than continuing on a diverged branch I decided to take what I have and target develop.

This PR implements the connection challenge and redemption aspects of the new auth flow, as well as work on the scope token system.

Closes #100

@craftxbox
craftxbox marked this pull request as draft August 9, 2026 07:17
connection_challenge = serializers.CharField(min_length=128, max_length=128)

class AuthRequestSerializer(ConnectionChallengeSerializer):
#previously used to be allow_blank but blank seems to get interpreted as not being present, which causes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

causes what?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the documented behavior for allow_blank is considering an empty string as valid, but the field should always be present. What did you find it was doing instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I genuinely do not remember, i will have to come back to that. i tHINK it was treating an empty string as null and violating the non_null constraint but i cannot remember.

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