mammoth-country-5949
07/27/2022, 9:16 PM"message": "file:///etc/config/oidc.microsoft.jsonnet:21:1 Expected , or ; but got end of file\n\n\n\n"
mammoth-country-5949
07/27/2022, 9:19 PMlocal claims = {
role: 'user'
} + local claims = std.extVar('claims');
{
identity: {
traits: {
// Allowing unverified email addresses enables account
// enumeration attacks, especially if the value is used for
// e.g. verification or as a password login identifier.
//
// If connecting only to your organization (one tenant), claims.email is safe to use if you have not actively disabled e-mail verification during signup.
//
// The email might be empty if the account is not linked to an email address.
// For a human readable identifier, consider using the "preferred_username" claim.
[if "email" in claims then "email" else null]: claims.email,
role: claims.role
}
}
}
mammoth-country-5949
07/27/2022, 11:28 PM;
at the end of the file as suggested by the error simply change the error to
"message": "file:///etc/config/oidc.microsoft.jsonnet:21:1 Unexpected end of file\n\n\n\n"
mammoth-country-5949
07/28/2022, 12:10 AMJsonnet
extension in vscode
was very helpful..
had to change the content this way:
local claims = {
role: 'user'
} + std.extVar('claims');
{
identity: {
traits: {
// Allowing unverified email addresses enables account
// enumeration attacks, especially if the value is used for
// e.g. verification or as a password login identifier.
//
// If connecting only to your organization (one tenant), claims.email is safe to use if you have not actively disabled e-mail verification during signup.
//
// The email might be empty if the account is not linked to an email address.
// For a human readable identifier, consider using the "preferred_username" claim.
[if "email" in claims then "email" else null]: claims.email,
role: claims.role
}
}
}
removing the extra
+ local claims =