Plugin example with authentication #5748
-
Hi, I was wondering if there was a sample plugin that showed authentication options with semantic kernel plugins? Using Chat Copilot when I enable the Jira Plugin I can see that it supports authentication with a personal access token. Is there an example of how to implement this type of authentication? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
In Semantic Kernel, we take a hands-off approach to authentication as long as you're able to inject your auth key in the header. |
Beta Was this translation helpful? Give feedback.
-
@eeadie Here is .NET example for Jira Plugin with authentication: In this file you can also find examples of different auth providers: Let me know if that helps, thank you! |
Beta Was this translation helpful? Give feedback.
@eeadie Here is .NET example for Jira Plugin with authentication:
https://github.com/microsoft/semantic-kernel/blob/0a9e74a3c62aba1115bdf39c22dba669d21e7839/dotnet/samples/KernelSyntaxExamples/Example24_OpenApiPlugin_Jira.cs
In this file you can also find examples of different auth providers:
semantic-kernel/dotnet/samples/KernelSyntaxExamples/Example24_OpenApiPlugin_Jira.cs
Lines 116 to 122 in 0a9e74a