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

Allow testing of the role of the authenticated user #12

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

RobFaie
Copy link
Contributor

@RobFaie RobFaie commented Feb 18, 2020

  • Calls the /me endpoint to get the authenticated user and stores the result in the context.
  • Added Test-Is internal functions to test if the authenticated user is a certain role
  • Added Assert-Is internal functions to check the user's role and throws an exception if they are not.
    • Note that Assert-IsAgent does not error if user is an admin.

@RobFaie RobFaie changed the title Allow testing of the role of the authenticated user +semver: feature Allow testing of the role of the authenticated user Feb 18, 2020
@RobFaie RobFaie merged commit 1499d25 into master Feb 19, 2020
@RobFaie RobFaie deleted the access-levels branch February 20, 2020 13:24
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