Skip to content

Commit

Permalink
Merge branch 'develop' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
neophyte57 committed Jan 29, 2024
2 parents 5160328 + 27104a5 commit 9430f42
Show file tree
Hide file tree
Showing 6 changed files with 18,012 additions and 30 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,5 @@ jobs:
-p WEB_PORT=8080 \
-p HPR_URL=healthpractitionerregistration.apps.silver.devops.gov.bc.ca \
-p MAUTH_URL=prod-mauth-${{secrets.OPENSHIFT_LICENSE_PLATE}}-prod.apps.silver.devops.gov.bc.ca \
-p DOCMAN_VOLUME_CAPACITY=6Gi \
-n ${{secrets.OPENSHIFT_LICENSE_PLATE}}-${{secrets.OPENSHIFT_ENVIRONMENT}} | oc apply -n ${{secrets.OPENSHIFT_LICENSE_PLATE}}-${{secrets.OPENSHIFT_ENVIRONMENT}} -f -
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public override IEnumerable<CollegeLicenseGrouping> SeedData
//Oral Health Professional Groups
new CollegeLicenseGrouping { Code = 10, Name = "Dentist", Weight = 6 },
new CollegeLicenseGrouping { Code = 9, Name = "Dental Therapist", Weight = 7 },
new CollegeLicenseGrouping { Code = 6, Name = "Dental Assistant", Weight = 8 },
new CollegeLicenseGrouping { Code = 6, Name = "Certified Dental Assistant", Weight = 8 },
new CollegeLicenseGrouping { Code = 7, Name = "Dental Hygienist", Weight = 9 },
new CollegeLicenseGrouping { Code = 8, Name = "Dental Technician", Weight = 10 },
new CollegeLicenseGrouping { Code = 11, Name = "Denturist", Weight = 11 }
Expand Down
28 changes: 0 additions & 28 deletions prime-dotnet-webapi/Controllers/ProvisionerAccessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,34 +264,6 @@ public async Task<ActionResult> GetUpdatedGpids([FromForm] string[] hpdids, [Fro
}
}

// POST: api/provisioner-access/gpids/123456789/validate
/// <summary>
/// Validates the supplied information against the enrollee record with the given GPID. Requires a valid direct access grant token.
/// </summary>
[HttpPost("gpids/{gpid}/validate", Name = nameof(ValidateGpid))]
[Authorize(Roles = Roles.ExternalGpidValidation)]
[ProducesResponseType(typeof(ApiMessageResponse), StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(ApiMessageResponse), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ApiResultResponse<GpidValidationResponse>), StatusCodes.Status200OK)]
public async Task<ActionResult> ValidateGpid(string gpid, GpidValidationParameters parameters)
{
if (parameters == null)
{
return BadRequest($"Must supply validation parameters");
}

var response = await _enrolleeService.ValidateProvisionerDataAsync(gpid, parameters);

if (response == null)
{
return NotFound($"Enrollee not found with GPID {gpid}");
}

return Ok(response);
}

private static string SerializeObjectForLog(object obj)
{
var serializerSettings = new JsonSerializerSettings
Expand Down
Loading

0 comments on commit 9430f42

Please sign in to comment.