Compare commits

...

10 Commits

Author SHA1 Message Date
khwezi dfb5ce8a4b Merge pull request 'Built test for Gomba' (#15) from payments into master
Reviewed-on: #15
2026-06-06 22:47:02 +02:00
Khwezi Mngoma 36b2f365d9 Built test for Gomba
continuous-integration/drone/pr Build is passing
2026-06-06 22:46:00 +02:00
khwezi 9bff28cec2 Merge pull request 'Updated api to use litecharms-security' (#14) from payments into master
Reviewed-on: #14
2026-06-06 22:09:10 +02:00
Khwezi Mngoma c76438b881 Updated api to use litecharms-security
continuous-integration/drone/pr Build is passing
2026-06-06 22:08:04 +02:00
khwezi 857173af25 Merge pull request 'Updated introspection configuration' (#13) from payments into master
Reviewed-on: #13
2026-06-05 06:03:52 +02:00
Khwezi Mngoma e29c1ef6fc Updated introspection configuration
continuous-integration/drone/pr Build is passing
2026-06-05 06:02:58 +02:00
khwezi c8a4a4cb17 Merge pull request 'Fixed setup issue' (#12) from payments into master
Reviewed-on: #12
2026-06-04 14:22:51 +02:00
Khwezi Mngoma 56e002875e Fixed setup issue
continuous-integration/drone/pr Build is passing
2026-06-04 14:22:22 +02:00
khwezi d485e78498 Merge pull request 'Updated auth configs' (#11) from payments into master
Reviewed-on: #11
2026-06-04 14:14:03 +02:00
Khwezi Mngoma ba3f8f6f9b Updated auth configs
continuous-integration/drone/pr Build is failing
2026-06-04 14:13:26 +02:00
4 changed files with 14 additions and 20 deletions
+2 -2
View File
@@ -54,13 +54,13 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="LiteCharms.Features" Version="1.77.0" /> <PackageReference Include="LiteCharms.Features" Version="1.91.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.91.0" />
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="Blazored.Toast.Services" /> <Using Include="Blazored.Toast.Services" />
+1 -1
View File
@@ -12,7 +12,7 @@ builder.Services.AddEndpoints(Assembly.GetExecutingAssembly());
builder.Services.AddApiServices(builder.Configuration); builder.Services.AddApiServices(builder.Configuration);
builder.Services.AddMediator(); builder.Services.AddMediator();
builder.Services.AddAuthentic(builder.Configuration); builder.Services.AddLiteCharmsApiSecurity(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<,>));
+3 -6
View File
@@ -1,10 +1,7 @@
{ {
"AuthentikSettings": { "LiteCharmsSettings": {
"Authority": "https://id.khongisa.co.za/application/o/midrand-books-api-uat/", "Authority": "https://sts.security.khongisa.co.za",
"IntrospectionUrl": "https://id.khongisa.co.za/application/o/introspect/", "Audience": "midrandbooks-api"
"RequiredClaimName": "scope",
"RequiredClaimNameValue": "openid",
"RequireHttpsMetadata": true
}, },
"ValidPayfastHosts": [ "ValidPayfastHosts": [
"www.payfast.co.za", "www.payfast.co.za",
+8 -11
View File
@@ -26,11 +26,8 @@ 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/" LiteCharmsSettings__Authority: "https://sts.security.khongisa.co.za"
AuthentikSettings__IntrospectionUrl: "https://id.khongisa.co.za/application/o/introspect/" LiteCharmsSettings__Audience: "midrandbooks-api"
AuthentikSettings__RequiredClaimName: "scope"
AuthentikSettings__RequiredClaimNameValue: "openid"
AuthentikSettings__RequireHttpsMetadata: "true"
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@@ -46,8 +43,8 @@ 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== litecharms-clientid: bWlkcmFuZGJvb2tzLWFwaQ==
authentik-clientsecret: dHZQVU0zVnFmazJzcmE5OXM5bE4zWWxpMHlsYUdUNnZiUUJxZkg3S3ZTSWJUZUo2ZFpHQjEyTlc0TXhxRERXSmV4UDd2WGZqVEFadFIzajNpdkQ2Y1RKcjV4UTlTNHJwRm5TZlk0Rmk2OVJOd1J2S0hqOGhWcmQzd29icTZPREc= litecharms-clientsecret: c2VjcmV0X2YzZjA0YWNhYTMzNmVlOTEzZDRjNjdlYmQwOTE1ZWFlYzQ0NzdmYTkwOTdlYTJhYzkyZGE4ZDc0NjgzZTAyNTU=
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@@ -100,16 +97,16 @@ spec:
- configMapRef: - configMapRef:
name: midrandbooksapi-config name: midrandbooksapi-config
env: env:
- name: AuthentikSettings__ApiResourceName - name: LiteCharmsSettings__ClientId
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: midrandbooksapi-secrets name: midrandbooksapi-secrets
key: authentik-clientid key: litecharms-clientid
- name: AuthentikSettings__ApiResourceSecret - name: LiteCharmsSettings__ClientSecret
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: midrandbooksapi-secrets name: midrandbooksapi-secrets
key: authentik-clientsecret key: litecharms-clientsecret
- name: BookshopS3Settings__AccessKey - name: BookshopS3Settings__AccessKey
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: