We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a637aca commit e9bf6caCopy full SHA for e9bf6ca
libcups
moauthd/token.c
@@ -1,7 +1,7 @@
1
//
2
// Token handling for moauth daemon
3
4
-// Copyright © 2017-2024 by Michael R Sweet
+// Copyright © 2017-2025 by Michael R Sweet
5
6
// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
7
@@ -66,7 +66,7 @@ moauthdCreateToken(
66
token->expires = token->created + server->max_token_life;
67
68
// Generate the JWT for the token...
69
- jwt = cupsJWTNew("JWT");
+ jwt = cupsJWTNew("JWT", /*claims*/NULL);
70
cupsJWTSetClaimString(jwt, "iss", token->user);
71
cupsJWTSetClaimString(jwt, "scope", token->scopes);
72
cupsJWTSetClaimNumber(jwt, "iat", (double)token->created);
0 commit comments