Wiremock authentication and Authorization - Azure AD #360

Closed
opened 2025-12-29 08:26:53 +01:00 by adam · 11 comments
Owner

Originally created by @devmariodiaz on GitHub (Sep 29, 2021).

Is there any way to implement authentication and authorization with Wiremock? Something like Azure AD, JWT, etc.

Originally created by @devmariodiaz on GitHub (Sep 29, 2021). Is there any way to implement authentication and authorization with Wiremock? Something like Azure AD, JWT, etc.
adam added the question label 2025-12-29 08:26:53 +01:00
adam closed this issue 2025-12-29 08:26:53 +01:00
Author
Owner

@StefH commented on GitHub (Sep 29, 2021):

@devmariodiaz
You mean authentication for the REST admin interface?

@StefH commented on GitHub (Sep 29, 2021): @devmariodiaz You mean authentication for the REST admin interface?
Author
Owner

@devmariodiaz commented on GitHub (Sep 29, 2021):

@StefH we need to verify if the person that is invoking the service mocked is authorized to do that using Azure Active Directory is possible to do it?

@devmariodiaz commented on GitHub (Sep 29, 2021): @StefH we need to verify if the person that is invoking the service mocked is authorized to do that using Azure Active Directory is possible to do it?
Author
Owner

@StefH commented on GitHub (Sep 29, 2021):

@devmariodiaz

I've created a preview version : 1.4.24-ci-15439. on MyGet :
https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions

This version should support AzureAD authentication which needs an "Tenant" and "Audience".

use it like:

server.SetAzureADAuthentication("tenant guid", "audience or resource guid");
@StefH commented on GitHub (Sep 29, 2021): @devmariodiaz I've created a preview version : `1.4.24-ci-15439.` on MyGet : https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions This version should support AzureAD authentication which needs an "Tenant" and "Audience". use it like: ``` c# server.SetAzureADAuthentication("tenant guid", "audience or resource guid"); ```
Author
Owner

@StefH commented on GitHub (Sep 30, 2021):

https://github.com/WireMock-Net/WireMock.Net/pull/637

@StefH commented on GitHub (Sep 30, 2021): https://github.com/WireMock-Net/WireMock.Net/pull/637
Author
Owner

@StefH commented on GitHub (Sep 30, 2021):

@devmariodiaz
Did you have time yet to test this?

@StefH commented on GitHub (Sep 30, 2021): @devmariodiaz Did you have time yet to test this?
Author
Owner

@devmariodiaz commented on GitHub (Sep 30, 2021):

Oh great, my friend, I will test and I will tell you how was it, thanks a lot

@devmariodiaz commented on GitHub (Sep 30, 2021): Oh great, my friend, I will test and I will tell you how was it, thanks a lot
Author
Owner

@StefH commented on GitHub (Oct 5, 2021):

Did you have time yet to verify ?

@StefH commented on GitHub (Oct 5, 2021): Did you have time yet to verify ?
Author
Owner

@StefH commented on GitHub (Oct 7, 2021):

Hello @devmariodiaz, if you have time, can you please verify this?

If it's ok, I can merge this to the main and create a new release.

@StefH commented on GitHub (Oct 7, 2021): Hello @devmariodiaz, if you have time, can you please verify this? If it's ok, I can merge this to the main and create a new release.
Author
Owner

@devmariodiaz commented on GitHub (Oct 7, 2021):

Hello Mr @StefH,

I appreciate your time.

Currently, I am not able to verify this feature, because I cannot access our Azure Environment, I will let you know as soon as have access to the environment, again thanks a lot for adding this feature.

@devmariodiaz commented on GitHub (Oct 7, 2021): Hello Mr @StefH, I appreciate your time. Currently, I am not able to verify this feature, because I cannot access our Azure Environment, I will let you know as soon as have access to the environment, again thanks a lot for adding this feature.
Author
Owner

@StefH commented on GitHub (Oct 19, 2021):

Do you already have access to your Azure environment?

@StefH commented on GitHub (Oct 19, 2021): Do you already have access to your Azure environment?
Author
Owner

@StefH commented on GitHub (Oct 20, 2021):

@devmariodiaz
I've merged the PR to master.

In case you find some errors while testing, just create a new issue.

@StefH commented on GitHub (Oct 20, 2021): @devmariodiaz I've merged the PR to master. In case you find some errors while testing, just create a new issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#360