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

Integrate AuthN and AuthZ into Quarterdeck #93

Merged
merged 1 commit into from Jan 19, 2023
Merged

Conversation

bbengfort
Copy link
Contributor

@bbengfort bbengfort commented Jan 19, 2023

Scope of changes

Implements the Authenticate and Authorize endpoints into Quarterdeck and creates some client stubs for authentication to setup testing.

Fixes SC-12739

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

This PR influences SC-12797 because it starts towards a solution.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #12739: Integrate Authenticate and Authorize middleware.

Copy link
Contributor

@pdeziel pdeziel left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for adding the stubs.

req.Header.Set("Authorization", "Bearer "+token)
return nil
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This should work for now, I'm leaning towards the context method but it's hard to tell which way I like better until I actually start implementing it.


// require.NoError(err, "should return an empty list")
// require.Empty(rep.APIKeys)
// require.Empty(rep.NextPageToken)
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll finish the tests in the story where I actually implement the API list.

@bbengfort bbengfort merged commit 3a1e067 into main Jan 19, 2023
@bbengfort bbengfort deleted the sc-12739/qdmw branch January 19, 2023 19:47
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.

None yet

2 participants