Compare commits
7
Commits
fc25d7ea40
..
1.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e23217eb4 | ||
|
|
08af08d3dc | ||
|
|
db0715ceca | ||
|
|
851ca72b46 | ||
|
|
b731ebdcea | ||
|
|
f3e71aa604 | ||
|
|
e07cd0e0fd |
@@ -54,13 +54,13 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="LiteCharms.Features" Version="1.77.0" />
|
<PackageReference Include="LiteCharms.Features" Version="1.71.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- UI -->
|
<!-- UI -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
||||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.77.0" />
|
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.71.0" />
|
||||||
|
|
||||||
<!-- Global Usings -->
|
<!-- Global Usings -->
|
||||||
<Using Include="Blazored.Toast.Services" />
|
<Using Include="Blazored.Toast.Services" />
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
using LiteCharms.Features.Abstractions;
|
|
||||||
using LiteCharms.Features.Api;
|
|
||||||
using LiteCharms.Features.Extensions;
|
|
||||||
|
|
||||||
namespace MidrandBooksApi.Payments.Endpoints;
|
|
||||||
|
|
||||||
[ApiVersionTarget(1)]
|
|
||||||
public class IdentityEndpoint : IEndpoint
|
|
||||||
{
|
|
||||||
public void Map(IEndpointRouteBuilder builder)
|
|
||||||
{
|
|
||||||
builder.MapGet("security/test", () =>
|
|
||||||
{
|
|
||||||
return Results.Ok();
|
|
||||||
})
|
|
||||||
.RequireAuthorization()
|
|
||||||
.WithDescription("Security test endpoint")
|
|
||||||
.WithName(typeof(IdentityEndpoint).ToEndpointName())
|
|
||||||
.Produces(StatusCodes.Status200OK)
|
|
||||||
.WithTags("Security")
|
|
||||||
.MapToApiVersion(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -11,8 +11,10 @@ builder.Services.AddEndpointsApiExplorer();
|
|||||||
builder.Services.AddEndpoints(Assembly.GetExecutingAssembly());
|
builder.Services.AddEndpoints(Assembly.GetExecutingAssembly());
|
||||||
builder.Services.AddApiServices(builder.Configuration);
|
builder.Services.AddApiServices(builder.Configuration);
|
||||||
|
|
||||||
|
builder.Services.AddAuthorization();
|
||||||
|
builder.Services.AddAuthentication();
|
||||||
|
|
||||||
builder.Services.AddMediator();
|
builder.Services.AddMediator();
|
||||||
builder.Services.AddAuthentic(builder.Configuration);
|
|
||||||
|
|
||||||
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>));
|
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>));
|
||||||
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>));
|
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>));
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
{
|
{
|
||||||
"AuthentikSettings": {
|
|
||||||
"Authority": "https://id.khongisa.co.za/application/o/midrand-books-api-uat/",
|
|
||||||
"IntrospectionUrl": "https://id.khongisa.co.za/application/o/introspect/",
|
|
||||||
"RequiredClaimName": "scope",
|
|
||||||
"RequiredClaimNameValue": "openid",
|
|
||||||
"RequireHttpsMetadata": true
|
|
||||||
},
|
|
||||||
"ValidPayfastHosts": [
|
"ValidPayfastHosts": [
|
||||||
"www.payfast.co.za",
|
"www.payfast.co.za",
|
||||||
"sandbox.payfast.co.za",
|
"sandbox.payfast.co.za",
|
||||||
|
|||||||
@@ -26,11 +26,6 @@ data:
|
|||||||
ValidPayfastHosts__4: "ips.payfast.co.za"
|
ValidPayfastHosts__4: "ips.payfast.co.za"
|
||||||
ValidPayfastHosts__5: "api.payfast.co.za"
|
ValidPayfastHosts__5: "api.payfast.co.za"
|
||||||
ValidPayfastHosts__6: "payment.payfast.io"
|
ValidPayfastHosts__6: "payment.payfast.io"
|
||||||
AuthentikSettings__Authority: "https://id.khongisa.co.za/application/o/midrand-books-api-uat/"
|
|
||||||
AuthentikSettings__IntrospectionUrl: "https://id.khongisa.co.za/application/o/introspect/"
|
|
||||||
AuthentikSettings__RequiredClaimName: "scope"
|
|
||||||
AuthentikSettings__RequiredClaimNameValue: "openid"
|
|
||||||
AuthentikSettings__RequireHttpsMetadata: "true"
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
@@ -46,8 +41,6 @@ data:
|
|||||||
hasher-payfastpassphrase: OUdBSVIwdFdwaFgwcU8=
|
hasher-payfastpassphrase: OUdBSVIwdFdwaFgwcU8=
|
||||||
bookshop-s3-accesskey: R0s1MTRkMmNlOGRjNjkyMzdhMDVjMDFlZWY=
|
bookshop-s3-accesskey: R0s1MTRkMmNlOGRjNjkyMzdhMDVjMDFlZWY=
|
||||||
bookshop-s3-secretkey: ZWFhZmVkYTFhZWQ0MDllY2ZlNjA3MTRlY2RhNTQ5YjgyYmRmNWEzZGFmOWYxOGRkNjFmNjZiNDk3M2E2NDgyZQ==
|
bookshop-s3-secretkey: ZWFhZmVkYTFhZWQ0MDllY2ZlNjA3MTRlY2RhNTQ5YjgyYmRmNWEzZGFmOWYxOGRkNjFmNjZiNDk3M2E2NDgyZQ==
|
||||||
authentik-clientid: aTZ5Z3I4NEhsbmh4RllxTEpWSjJIaGRsVnJPWUU0UG51clQ1Y1BRVw==
|
|
||||||
authentik-clientsecret: dHZQVU0zVnFmazJzcmE5OXM5bE4zWWxpMHlsYUdUNnZiUUJxZkg3S3ZTSWJUZUo2ZFpHQjEyTlc0TXhxRERXSmV4UDd2WGZqVEFadFIzajNpdkQ2Y1RKcjV4UTlTNHJwRm5TZlk0Rmk2OVJOd1J2S0hqOGhWcmQzd29icTZPREc=
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
|||||||
Reference in New Issue
Block a user