SAMLSPMetadata

Retrieve SAML service provider metadata.

rpc SAMLSPMetadata

user_api.v1.SAMLSPMetadata

Retrieve SAML service provider metadata.

requests SAMLSPMetadataRequest

user_api.v1.SAMLSPMetadataRequest

resp, _ := userApiService.SAMLSPMetadata(ctx, &v1.SAMLSPMetadataRequest{})
fmt.Println(resp)
const samlspmetadatarequest = new SAMLSPMetadataRequest();

service.sAMLSPMetadata(samlspmetadatarequest, (err, value:SAMLSPMetadataResponse|null) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
using System;
using Grpc.Core;
using UserApi.V1;

namespace main
{
  class Program
  {
    static void Main(string[] args)
    {
      Channel channel = new Channel("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io:443", ChannelCredentials.Insecure); 
      var client = new UserApiService.UserApiServiceClient(channel); 
      var headers = new Metadata();
      var sAMLSPMetadataRequest = new SAMLSPMetadataRequest{};
      var reply = client.SAMLSPMetadata(sAMLSPMetadataRequest, headers);
      Console.WriteLine("Response: " + reply);
      channel.ShutdownAsync().Wait();
    }
  }
}
package demo;

import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import user_api.v1.User.SAMLSPMetadataRequest;
import user_api.v1.User.SAMLSPMetadataResponse;
import user_api.v1.UserApiServiceGrpc;

public class App {
  public static void main(String[] args) {
    ManagedChannel channel = ManagedChannelBuilder
      .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
      .usePlaintext()
      .build();
    UserApiServiceGrpc.UserApiServiceBlockingStub blockStub =
        UserApiServiceGrpc.newBlockingStub(channel);
    
    SAMLSPMetadataRequest req_SAMLSPMetadataRequest =
        SAMLSPMetadataRequest.newBuilder()
          .build();
    SAMLSPMetadataResponse resp = blockStub.sAMLSPMetadata(req_SAMLSPMetadataRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const samlspmetadatarequest = new SAMLSPMetadataRequest();

service.sAMLSPMetadata(samlspmetadatarequest, (err, value) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;

use grpc-sdks::user_api::v1::user_api_service_client::UserApiServiceClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let channel = Channel::from_static("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io")
    .connect()
    .await?;
  let mut client = UserApiServiceClient::new(channel); 

  let request = tonic::Request::new(
    ());
// sending request and waiting for response
  let response = client.samlsp_metadata(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import user_api.v1.User.SAMLSPMetadataRequest
import user_api.v1.User.SAMLSPMetadataResponse
import user_api.v1.UserApiServiceGrpc

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
            .usePlaintext()
            .build()
    var blockStub = UserApiServiceGrpc.newBlockingStub(channel)
    
    val req_SAMLSPMetadataRequest = SAMLSPMetadataRequest.newBuilder()
          .build()
    val resp = blockStub.sAMLSPMetadata(req_SAMLSPMetadataRequest)
    println(resp)
    channel.shutdown()
}


returns SAMLSPMetadataResponse

user_api.v1.SAMLSPMetadataResponse

FieldTypeDescription
sp_metadatabytesMetadata about the service provider using the identity provider.
{
  "sp_metadata": "SPMetadataVariesLen="
}