Skip to content

Commit

Permalink
Merge pull request #1069 from ITfoxtec/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
Revsgaard authored Dec 4, 2024
2 parents fb13c2d + 4c35222 commit ef393e8
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
7 changes: 2 additions & 5 deletions docs/auth-method-howto-saml-2.0-nemlogin.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ It is subsequently possible to add a secondary certificate and to swap between t
![NemLog-in SAML 2.0 authentication method](images/howto-saml-nemlogin3-auth-claims.png)

12. Set Login hint in Authn request in Subject NameID to Disabled
13. In production only! optionally the Certificate validation mode to `Chain trust` if the OCES3 root certificate is trusted on your platform. The OCES3 root certificate is NOT trusted in Azure
13. In production only! optionally the Certificate validation mode to `Chain trust` if the OCES3 root certificate is trusted on your platform
Set the Certificate revocation mode to `Online`
14. Select to include the encryption certificate in metadata
15. Set the NameID format in metadata to `urn:oasis:names:tc:SAML:2.0:nameid-format:persistent`
Expand Down Expand Up @@ -176,10 +176,7 @@ The SAML 2.0 authentication method can now be used as an authentication method f
NemLog-in requires requests and responses to be logged including the signature proof and stored for half a year (180 days). It is also required to log which identity has login and logout of which session, at what time and the IP address.
[FoxIDs default log](logging.md) errors and events including the time and the IP address.

> With an Enterprise plan on [FoxIDs.com](https://www.foxids.com) log data is stored for 180 days.
> If you are using a Free or Pro plan, you can send logs to your own Application Insights with a [log stream](logging.md#log-stream) and thereby save the logs for 180 days.
It can be configured which logs should be logged to the Application Insights which is part of the FoxIDs installation or to an external repository with a [log stream](logging.md#log-stream).
> With a Pro and Enterprise plan on [FoxIDs.com](https://www.foxids.com) log data is stored for 180 days.
The log level NemLog-in require is configured in the FoxIDs log settings:

Expand Down
11 changes: 6 additions & 5 deletions docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ FoxIDs default log errors and events including the time and the client IP addres

The two supported log options `Settings__Options:Log` is:

- `Stdout` which logs to the console output. This log options are used for Deploy / Kubernetes (k8s) deployment.
- `ApplicationInsights` which sends logs to [Application Insights](#application-insights) and the logs can subsequently be view in FoxIDs Control.
- `Stdout` which logs to the console output. This log options are used for small Docker / Kubernetes (k8s) deployment.
- `OpenSearchAndStdoutErrors` which logs to OpenSearch and send errors logs to the console output. The OpenSearch logs can subsequently be view in FoxIDs Control. This log options are used for Kubernetes (k8s) deployment.
- `ApplicationInsights` which sends logs to Azure Application Insights and the logs can subsequently be view in FoxIDs Control. This log options are used for Azure deployment.

The [log settings](#log-settings) and [log stream](#log-stream) are available for both log options.

## Application Insights
## Logs in FoxIDs Control

The logs are sent to Application Insights which is part of the FoxIDs cloud deployment.
The logs can be viewed in FoxIDs Control if you use the log option `OpenSearchAndStdoutErrors` or `ApplicationInsights`.

### Usage

Expand Down Expand Up @@ -46,7 +47,7 @@ The log level can be configured per FoxIDs environment:

It can be configured which logs should be logged to an external repository with a log stream.

Add external Application Insights with a log stream and select which logs should be sent.
Add external Azure Application Insights with a log stream and select which logs should be sent.

![Log stream - Application Insights](images/configure-log-stream-appinsight.png)

Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Control/FoxIDs.Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs.Client</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Shared/FoxIDs.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected virtual void ActionExecutionInit(ActionExecutedContext resultContext)
protected virtual void SetHeaders(HttpContext httpContext)
{
httpContext.Response.SetHeader("X-Content-Type-Options", "nosniff");
httpContext.Response.SetHeader("Referrer-Policy", "no-referrer");
httpContext.Response.SetHeader("Referrer-Policy", "strict-origin");
httpContext.Response.SetHeader("X-XSS-Protection", "1; mode=block");

if (isHtmlContent)
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs/FoxIDs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.13.2</Version>
<Version>1.13.3</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down

0 comments on commit ef393e8

Please sign in to comment.