Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

82 login api no longer working #84

Merged
merged 5 commits into from
Aug 24, 2023

Conversation

elliot-100
Copy link
Collaborator

@elliot-100 elliot-100 commented Aug 22, 2023

Rework login/auth for new API endpoint, and bearer token instead of cookies.
Code from @jamestutton.

@elliot-100 elliot-100 requested review from Olen and removed request for Olen August 22, 2023 19:01
@elliot-100
Copy link
Collaborator Author

I've made the changes supplied by @jamestutton in #82 on top of a couple of minor refactors.

@Olen
Copy link
Owner

Olen commented Aug 22, 2023

Looks fine. Not tested, but the code looks sane.

@elliot-100 elliot-100 marked this pull request as ready for review August 23, 2023 20:17
@elliot-100 elliot-100 merged commit a30f862 into Olen:main Aug 24, 2023
@elliot-100 elliot-100 deleted the 82-login-api-no-longer-working branch August 24, 2023 14:39
@elliot-100
Copy link
Collaborator Author

Thanks @Olen. I've gone ahead and merged with a trivial simplification.
There is a duplication of these elements in the headers / auth_headers dicts which I haven't got round to factoring out, but that can follow...

{
    "content-type": "application/json",
    "Authorization": f"Bearer {self.token}",
}

Forgot to say thanks @jamestutton!

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.

2 participants