https://discord.umbraco.com
Join Discord
Extern Login Azure AD
a

ALX

about 2 years ago
Hello, I am currently working in a project and integration with Azure AD, I follow the Umbracos documentation to implement and it works as expected 🙂 , Login succeed to the backoffice as the role i Configure in the extension class. The issue I have now is that I need to add in the logic the role, what I mean is that based on the info in the claims login as an editor or admin. I would appreciate any tips or help about how to add that info on azure and how to get it in the request/response. Thank you for your help. 🙏
a
s
  • 2
  • 5
  • 27
Rich text editor removes <p> tags and ignores embedding of images
a

amwatson.dev

about 2 years ago
Hi everyone, We are using Umbraco 11 and have run into an issue with the rich text editor where it clears all paragraph spacing and will not accept images being embedded into the RTE window. It happens whether the RTE is part of a composed block, or if it's just out on it's own. Any help or ideas where to look would be greatly appreciated. BTW, I'm still learning, so apologies if it's something obvious that I didn't realise.
a
s
+2
  • 4
  • 16
  • 27
Umbraco Forms Headless antiforgery tokens always required
b

Bram

12 months ago
I'm trying to use the Umbraco Forms headless API to insert a row into a form. When I run this code I still get an error "The required antiforgeryToken is not present"
// security header
            requestMessage.Headers.Add("Api-Key", _options.CurrentValue.FormsKey);

            var response = await _httpClient.SendAsync(requestMessage);
            if (!response.IsSuccessStatusCode)
            {
                _logger.LogError("Umbraco Forms API did not return successful while adding record for newsletter, response {Response}",
                    await response.Content.ReadAsStringAsync());
                return false;
            }
Even though I have these appsettings:
"Options": {
        "EnableFormsApi": true,
        "EnableAntiForgeryTokenForFormsApi": false,
      },
      "Security": {
        "FormsApiKey": "[the correct key]"
      }
Is anyone familiair with how to fix this issue? I've even tried turning AntiForgery tokens off completely by using the Options:EnableAntiForgeryToken to false but this also doesn't work.
b
f
  • 2
  • 1
  • 26
API key or secret not set in configuration
t

Tobias

9 months ago
Hello! I just cloned a brand new Umbraco Cloud project with Umbraco.Cloud.Cms 15.1.1 and Umbraco.Cms 15.2.1. When trying to run the project in Visual Studio I get the following error: Microsoft.Extensions.Options.OptionsValidationException: 'API key or secret not set in configuration.' I can't find any information about setting an api key in the documentation. I should be able to run my website immediately. Does anyone know why this error occurs?
t
s
  • 2
  • 25
  • 26
Specific document types are not in externalIndex
r

Ramya Devendiran

9 months ago
The application is upgraded from Version 7 to Version 13.6.0. Upgrade process is complete and the site is UP and running. Public access is set to a node. The node and its children node are not available in External index, but it is in internal index. __NodeTypeAlias:havn3 in external index is empty. Document count confirms that the havn3 nodes are included. What could be the issue for not having specific documenttypes in external search index https://cdn.discordapp.com/attachments/1339900678537216050/1339900678729896038/image.png?ex=67b0673f&is=67af15bf&hm=a08da288259a2a08165b88872fbe5b8861c92c53273194e2ceb2a3e7c5ab9160&
r
d
a
  • 3
  • 4
  • 26
Stop umbraco from renaming image files and putting them in random named foldrs?
m

Matthew Alexandros

9 months ago
When you updaload an image to the media folder it gets put in wwwroot/media/RandomName and the file it's selfseems to be ranamed to random letters. Is there some config setting to make umbraco reflect the folder names/stucter of the front end and keep the original image name? I.E. If in the backoffice I make a folderin the meida section caleld "General Images" and upload "logo.webp" I would like the file to be located at wwwroot/media/General Images/logo.webp
m
j
+2
  • 4
  • 4
  • 26
Anchor in url -> scroll to block grid element
m

Mikkel Johansen

10 months ago
How do I make a deep link to a content node and a block grid element on that node. The element key is there. But is it possible to add the key to the edit url, so the user is guided directly to the location of the element on the node. https://cdn.discordapp.com/attachments/1330916350226337862/1330916350927044629/image.png?ex=678fb7f1&is=678e6671&hm=56bb9d17e139717e2ce3a5994b22479201a89b30820884cd6e68b62b235ae339&
m
d
s
  • 3
  • 14
  • 26
Umbraco stuck in boot failure after temporary database connectivity loss
k

kdx-perbol

12 months ago
Is there any way to** make Umbraco automatically unstuck from the permanent "failed to boot" that comes from SQL connectivity failures**? We have problems with intermittent loss of database connectivity, and sometimes this puts Umbraco in the permanent failed-to-boot state. We currently don't have an easy way to detect and restart Umbraco when this happens. What will happen is * SQL network glitch * Error in some Umbraco recurring task or something else that triggers database access * Umbraco SQL connection fail (in e.g.,
Umbraco.Cms.Persistence.SqlServer.Services.SqlServerSyntaxProvider.GetSetVersion
) * Permanent "Umbraco failed to boot" (even though Umbraco or the IIS application pool aren't rebooting or restarting at all)
k
d
  • 2
  • 3
  • 26
Css isolation
d

Dave de Moel

over 1 year ago
Since .Net 6 MVC support css isolation for views, Umbraco seems to lack this feature. Is it possible to enable it, or does it just not work with Umbraco?
d
j
m
  • 3
  • 21
  • 26
How to get all items by type?
t

TigerMan

over 1 year ago
Hi In a custom class I'm trying to get all items by a specific type. The type is Customers. I have tried using the IUmbracoContextAccessor returning IUmbracoContext and use the GetContent and GetByContentType which either I don't know what to pass into the function or it's a single IPublishedContent but it should be a list of all the Customers I have. Could anyone provide a simple example for me to follow please. Thanks
t
b
  • 2
  • 1
  • 26
Previous747576Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by