Update Issuer
PUTGenerate JWThttps://platform.nativeframe.com/auth/v1/issuers/:iss
Request
Path Parameters
Issuer ID
- application/json
Body
required
Issuer of the JWT
project
object
required
URL to the JWKs public keys, if no URL is provided you must include 'keys', if both are provided the keys fetched from the URL are merged with the supplied keys
An array of audiences that are valid for this issuer, an empty array is allowed
An array of roles that are allowed for this issuer, an empty permmits all roles
An uint64 bitmask representing the permissions valid for this issuser, an empty value permits all permissions
Indicates that this issuer is an internal issuer (NOTE: this field can not be set via the API)
Indicates that this issuer was added via a configuration, (NOTE: this field can not set via the API)
JWK public keys used for this issuer, an emtpy array is allowed if a JWKsURL is also provided
Responses
- 200
- 400
- 401
- 403
Issuer
- application/json
- Schema
- Example (from schema)
Schema
Issuer of the JWT
project
object
required
URL to the JWKs public keys, if no URL is provided you must include 'keys', if both are provided the keys fetched from the URL are merged with the supplied keys
An array of audiences that are valid for this issuer, an empty array is allowed
An array of roles that are allowed for this issuer, an empty permmits all roles
An uint64 bitmask representing the permissions valid for this issuser, an empty value permits all permissions
Indicates that this issuer is an internal issuer (NOTE: this field can not be set via the API)
Indicates that this issuer was added via a configuration, (NOTE: this field can not set via the API)
JWK public keys used for this issuer, an emtpy array is allowed if a JWKsURL is also provided
{
"iss": "string",
"project": {
"id": "string"
},
"JWKsURL": "string",
"aud": [
"string"
],
"roles": [
"string"
],
"prm": 0,
"internal": true,
"static": true,
"keys": [
null
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
JWT
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Authorization: http
name: JWTtype: httpscopes: roles:service-account,internal-account,aud:service-account,internal-account
scheme: bearerbearerFormat: JWTdescription: Bearer Token authentication for applications
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://platform.nativeframe.com/auth/v1/issuers/:iss");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"iss\": \"string\",\n \"project\": {\n \"id\": \"string\"\n },\n \"JWKsURL\": \"string\",\n \"aud\": [\n \"string\"\n ],\n \"roles\": [\n \"string\"\n ],\n \"prm\": 0,\n \"internal\": true,\n \"static\": true,\n \"keys\": [\n null\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());