Difference between revisions of "JSON Web Token (JWT)"

From wikieduonline
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* Structure: <code>[[Header]], [[Payload]], [[Signature]] </code>
 
* Structure: <code>[[Header]], [[Payload]], [[Signature]] </code>
  
Key - Description
 
alg - The encryption algorithm you used to encrypt the token. APNs supports only the ES256 algorithm, so set the value of this key to ES256.
 
kid - The 10-character Key ID you obtained from your developer account; see Obtain an Encryption Key and Key ID from Apple.
 
iss - The issuer key, the value for which is the 10-character Team ID you use for developing your company’s apps. Obtain this value from your developer account.
 
iat - The “issued at” time, whose value indicates the time at which this JSON token was generated. Specify the value as the number of seconds since Epoch, in UTC. The value must be no more than one hour from the current time.
 
<ref>https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns</ref>
 
  
* <code>[[openssl rand -hex]] 32 | [[tr -d]] "\n"</code>
 
  
* <code>[[geth]] [[--authrpc.jwtsecret]]</code>
+
 
 +
<code>[[openssl rand -hex]] 32 | [[tr -d]] "\n"</code>  
 +
342b7876ff93dedb43589f9acdfe3f9b93bcab09a9dd61d3e9c51f4ce20ff62e
 +
 
 +
== [[Ethereum JWT]] ==
 +
 
 +
 
 +
== Activities ==
 +
 
  
 
== Related terms ==
 
== Related terms ==
Line 20: Line 21:
 
* [[Auth0]], [[JWT access tokens]]
 
* [[Auth0]], [[JWT access tokens]]
 
* [[HMAC]]
 
* [[HMAC]]
* <code>[[lighthouse beacon node --execution-jwt]]</code>
 
 
* [[RFC 7519]]
 
* [[RFC 7519]]
 
* [[cookies]]
 
* [[cookies]]
 
* https://jwt.io/
 
* https://jwt.io/
* [[401 Unauthorized]]
+
* <code>[[401 Unauthorized]]</code>
 
* JWT URL embedding in [[Grafana changelog|Grafana]]
 
* JWT URL embedding in [[Grafana changelog|Grafana]]
* <code>[[~/.ethereum/geth/jwtsecret]]</code>
 
  
 
== See also ==
 
== See also ==

Latest revision as of 12:43, 8 August 2024

Advertising: