Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[sub pr: #100] Rename classes & refactor fork token handling flow#101

Draft
craftxbox wants to merge 5 commits intounitystation:NewFlowChangesunitystation/central-command:NewFlowChangesfrom
craftxbox:NewFlowChangescraftxbox/central-command:NewFlowChangesCopy head branch name to clipboard
Draft

[sub pr: #100] Rename classes & refactor fork token handling flow#101
craftxbox wants to merge 5 commits intounitystation:NewFlowChangesunitystation/central-command:NewFlowChangesfrom
craftxbox:NewFlowChangescraftxbox/central-command:NewFlowChangesCopy head branch name to clipboard

Conversation

@craftxbox
Copy link

Attempts to follow most of the review feedback given aswell.

src/accounts/api/views.py Outdated Show resolved Hide resolved
src/accounts/models.py Outdated Show resolved Hide resolved
"""

def has_permission(self, request, view):
auth_header = request.headers.get("Authorization")
Copy link
Member

Choose a reason for hiding this comment

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

I imagine you didn't like the X-Character-Token header. I think it was good to keep them separated and so we always know what we are talking about

Copy link
Author

Choose a reason for hiding this comment

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

Maybe only a minor thing however there's reasons not to put secrets in headers other than Authorization: https://stackoverflow.com/a/43164958/3934270

src/central_command/settings.py Show resolved Hide resolved
@craftxbox
Copy link
Author

tested as working from Postman

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

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.