Skip to content

Commit

Permalink
Add apikey-credentials-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 28, 2024
1 parent ff63e29 commit 712592c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MyApp/_podcasts/2024-11-28_apikey-credentials-auth.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Simple API Keys Credentials Provider for .NET 8 C# Microservices
summary: Improved Simple Auth using API Keys and Admin UI that's ideal for .NET 8 C# Microservices
tags: [ .net8,auth,apikeys ]
tags: [.net8,auth,apikeys]
url: https://media.servicestack.com/podcasts/apikey-credentials-auth.mp3
media: {size:3618860,duration:904.656000,format:mp3}
---
Expand Down
2 changes: 1 addition & 1 deletion MyApp/_posts/2024-11-28_apikey-credentials-auth.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Simple API Keys Credentials Provider for .NET 8 C# Microservices
summary: Improved Simple Auth using API Keys and Admin UI that's ideal for .NET 8 C# Microservices
tags: [ .net8,auth,apikeys ]
tags: [.net8,auth,apikeys]
author: Demis Bellot
image: https://images.unsplash.com/photo-1496368077930-c1e31b4e5b44?crop=entropy&fit=crop&h=1000&w=2000
---
Expand Down
19 changes: 19 additions & 0 deletions MyApp/_whatsnew/2024-11-26_v8.5/apikey-credentials-auth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: API Keys Credentials Provider for .NET 8 Microservices
url: /posts/apikey-credentials-auth
image: /img/posts/apikey-credentials-auth/ai-server-auth-apiexplorer.png
order: 4
---

The usability of the **Simple Auth with API Keys** story has been significantly improved with the new
`ApiKeyCredentialsProvider` which enables .NET Microservices to provide persistent UserSession-like
behavior using simple API Keys which can be configured together with `AuthSecretAuthProvider` and
`ApiKeysFeature` to enable a Credentials Auth implementation users can use with their API Keys
to restrict access to Authorized Users or Admin AuthSecret to protect Admin UIs and APIs.

### Session Auth with API Keys

Behind the scenes this creates a Server Auth Session but instead of maintaining an Authenticated
User Session it saves the API Key in the session then attaches the API Key to each request.
This makes it possible to make API Key validated requests with just a session cookie instead of
requiring resubmission of API Keys for each request.
2 changes: 1 addition & 1 deletion MyApp/_whatsnew/2024-11-26_v8.5/swift-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ServiceStack.Swift client library rewritten for Swift 6
url: /posts/swift6-upgrade
image: https://docs.servicestack.net/img/pages/servicestack-reference/swift-logo-banner.jpg
order: 4
order: 5
---

All generic service client libraries have been upgraded to support multiple file uploads with API requests
Expand Down
2 changes: 1 addition & 1 deletion MyApp/_whatsnew/2024-11-26_v8.5/typed-openai-chat-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Typed Open AI Chat & Ollama APIs in 11 Languages
url: /posts/typed-openai-chat-ollama-apis
image: /img/posts/ai-server/ai-server-languages.png
order: 3
order: 4
---

AI Server's `OpenAiChatCompletion` API - is an OpenAI compatible Chat API with ChatGPT and
Expand Down

0 comments on commit 712592c

Please sign in to comment.