< Summary - Kestrun — Combined Coverage

Information
Class: Public.JWT.Add-KrJWTIssuer
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/JWT/Add-KrJWTIssuer.ps1
Tag: Kestrun/Kestrun@5f1d2b981c9d7292c11fd448428c6ab6c811c5de
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 36
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 11/19/2025 - 17:40:50 Line coverage: 0% (0/1) Total lines: 36 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd026

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/JWT/Add-KrJWTIssuer.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Adds an issuer to the JWT token builder.
 4    .DESCRIPTION
 5        This function adds an issuer to the JWT token builder, allowing for the specification of the token's issuer.
 6    .PARAMETER Builder
 7        The JWT token builder to modify.
 8    .PARAMETER Issuer
 9        The issuer to set for the JWT token.
 10    .OUTPUTS
 11        [Kestrun.Jwt.JwtTokenBuilder]
 12        The modified JWT token builder.
 13    .EXAMPLE
 14        $builder = New-KrJWTTokenBuilder | Add-KrJWTIssuer -Issuer "myIssuer"
 15        This example creates a new JWT token builder and adds an issuer to it.
 16    .NOTES
 17        This function is part of the Kestrun.Jwt module and is used to build JWT tokens
 18        Maps to JwtTokenBuilder.WithIssuer
 19    .LINK
 20        https://docs.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.jwt.jwtsecuritytoken
 21#>
 22function Add-KrJWTIssuer {
 23    [KestrunRuntimeApi('Everywhere')]
 24    [CmdletBinding()]
 25    [OutputType([Kestrun.Jwt.JwtTokenBuilder])]
 26    param(
 27        [Parameter(Mandatory = $true, ValueFromPipeline)]
 28        [Kestrun.Jwt.JwtTokenBuilder] $Builder,
 29        [Parameter(Mandatory)]
 30        [string] $Issuer
 31    )
 32    process {
 033        return $Builder.WithIssuer($Issuer)
 34    }
 35}
 36

Methods/Properties

Add-KrJWTIssuer()