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

Add support for HTTP-based authorization #9

Merged
merged 5 commits into from
May 26, 2021
Merged

Conversation

lmsilva-wls
Copy link
Collaborator

No description provided.

app/helpers.go Outdated
return isAuthorized, allowedTopics, nil
}

func mongoAuthenticate(ctx context.Context, userID string, topics []string) (bool, []string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: could you call this mongoAuthorize? Authentication != authorization

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch, done!

@coveralls
Copy link

coveralls commented May 25, 2021

Coverage Status

Coverage decreased (-5.3%) to 72.394% when pulling 1d4f33d on add/http-auth into 779bbcd on master.

Copy link
Contributor

@flapezoti flapezoti left a comment

Choose a reason for hiding this comment

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

Great job, LGTM

@lmsilva-wls lmsilva-wls merged commit 6390984 into master May 26, 2021
@lmsilva-wls lmsilva-wls deleted the add/http-auth branch July 1, 2021 17:48
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