Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tunnelplan Auth Scheme #267

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cs/src/Contracts/TunnelAuthenticationSchemes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public static class TunnelAuthenticationSchemes
/// Authentication scheme for tunnel access tokens.
/// </summary>
public const string Tunnel = "tunnel";

/// <summary>
/// Authentication scheme for tunnelPlan access tokens.
/// </summary>
public const string TunnelPlan = "tunnelplan";
}
9 changes: 6 additions & 3 deletions go/tunnels/tunnel_authentication_schemes.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ type TunnelAuthenticationScheme string

const (
// Authentication scheme for AAD (or Microsoft account) access tokens.
TunnelAuthenticationSchemeAad TunnelAuthenticationScheme = "aad"
TunnelAuthenticationSchemeAad TunnelAuthenticationScheme = "aad"

// Authentication scheme for GitHub access tokens.
TunnelAuthenticationSchemeGitHub TunnelAuthenticationScheme = "github"
TunnelAuthenticationSchemeGitHub TunnelAuthenticationScheme = "github"

// Authentication scheme for tunnel access tokens.
TunnelAuthenticationSchemeTunnel TunnelAuthenticationScheme = "tunnel"
TunnelAuthenticationSchemeTunnel TunnelAuthenticationScheme = "tunnel"

// Authentication scheme for tunnelPlan access tokens.
TunnelAuthenticationSchemeTunnelPlan TunnelAuthenticationScheme = "tunnelplan"
)
2 changes: 1 addition & 1 deletion go/tunnels/tunnels.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/rodaine/table"
)

const PackageVersion = "0.0.14"
const PackageVersion = "0.0.15"

func (tunnel *Tunnel) requestObject() (*Tunnel, error) {
convertedTunnel := &Tunnel{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ public class TunnelAuthenticationSchemes {
* Authentication scheme for tunnel access tokens.
*/
public static final String tunnel = "tunnel";

/**
* Authentication scheme for tunnelPlan access tokens.
*/
public static final String tunnelPlan = "tunnelplan";
}
3 changes: 3 additions & 0 deletions rs/src/contracts/tunnel_authentication_schemes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pub const TUNNEL_AUTHENTICATION_SCHEMES_GITHUB: &str = r#"github"#;

// Authentication scheme for tunnel access tokens.
pub const TUNNEL_AUTHENTICATION_SCHEMES_TUNNEL: &str = r#"tunnel"#;

// Authentication scheme for tunnelPlan access tokens.
pub const TUNNEL_AUTHENTICATION_SCHEMES_TUNNEL_PLAN: &str = r#"tunnelplan"#;
5 changes: 5 additions & 0 deletions ts/src/contracts/tunnelAuthenticationSchemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ export enum TunnelAuthenticationSchemes {
* Authentication scheme for tunnel access tokens.
*/
Tunnel = 'tunnel',

/**
* Authentication scheme for tunnelPlan access tokens.
*/
TunnelPlan = 'tunnelplan',
}
Loading