NetworkConstants

public enum NetworkConstants

Shared network string constants used across the module.

These constants provide standardized header names, content types, and common parameter keys used throughout the Ping SDK network layer.

Standard Headers

  • Header name for SDK identification: “x-requested-with”

    Declaration

    Swift

    public static let headerRequestedWith: String
  • Header name for platform identification: “x-requested-platform”

    Declaration

    Swift

    public static let headerRequestedPlatform: String
  • Header name for content type: “Content-Type”

    Declaration

    Swift

    public static let headerContentType: String
  • Header name for cookies: “Cookie”

    Declaration

    Swift

    public static let headerCookie: String
  • Header name for setting cookies: “Set-Cookie”

    Declaration

    Swift

    public static let headerSetCookie: String
  • Lowercase version of Set-Cookie header for case-insensitive lookups: “set-cookie”

    Declaration

    Swift

    public static let headerSetCookieLowercased: String
  • Header name for authorization: “Authorization”

    Declaration

    Swift

    public static let headerAuthorization: String
  • Header name for accept language: “Accept-Language”

    Declaration

    Swift

    public static let headerAcceptLanguage: String
  • Header name for accept language: “Accept”

    Declaration

    Swift

    public static let headerAccept: String

Standard Header Values

  • Default value for x-requested-with header: “ping-sdk”

    Declaration

    Swift

    public static let requestedWithValue: String
  • Default value for x-requested-platform header: “ios”

    Declaration

    Swift

    public static let requestedPlatformValue: String
  • Bearer token prefix: “Bearer”

    Declaration

    Swift

    public static let bearerValue: String

Content Types

  • JSON content type: “application/json”

    Declaration

    Swift

    public static let contentTypeJSON: String
  • Form URL-encoded content type: “application/x-www-form-urlencoded”

    Declaration

    Swift

    public static let contentTypeForm: String

Common Cookie Names

  • Session token cookie name: “ST”

    Declaration

    Swift

    public static let stCookie: String
  • Session token without single sign-on cookie name: “ST-NO-SS”

    Declaration

    Swift

    public static let stNoSsCookie: String

Common Request Parameters and Keys

  • HATEOAS links key: “_links”

    Declaration

    Swift

    public static let _links: String
  • Continue flow parameter key: “continue”

    Declaration

    Swift

    public static let `continue`: String
  • HREF link key: “href”

    Declaration

    Swift

    public static let href: String
  • ID token key: “idToken”

    Declaration

    Swift

    public static let idToken: String
  • Access token key: “accessToken”

    Declaration

    Swift

    public static let accessToken: String

Common Response Parameters and Keys

  • OAuth/OIDC client identifier key: “clientId”

    Declaration

    Swift

    public static let clientId: String
  • Space-delimited list of requested scopes key: “scopes”

    Declaration

    Swift

    public static let scopes: String
  • OIDC nonce parameter key used to mitigate replay attacks: “nonce”

    Declaration

    Swift

    public static let nonce: String
  • Redirect URI parameter key indicating where the server should send the user after authorization: “redirectUri”

    Declaration

    Swift

    public static let redirectUri: String
  • Continuation/next step link key often used in HATEOAS-style responses: “next”

    Declaration

    Swift

    public static let next: String
  • idp

    Identity provider identifier key, used to select a specific IdP in federation flows: “idp”

    Declaration

    Swift

    public static let idp: String