Skip to content

Instantly share code, notes, and snippets.

View runes83's full-sized avatar

Rune Synnevåg runes83

  • Aritma
  • Bergen
View GitHub Profile
# Master database:
CREATE LOGIN SQLUSER
WITH PASSWORD = 'Password123'
GO
# Service database:
-- For login <login_name, sysname, login_name>, create a user in the database
CREATE USER SQLUSER
FOR LOGIN SQLUSER
@runes83
runes83 / AsyncSignForm.cs
Last active April 27, 2017 09:05
Hackaton asyncsign
//Contructor
signClient=new Client("https://testapi.signere.no",accountId,apiKey,false,true,true);
eventClient=EventClient.SetupWithPrimaryApiKey(eventConnectionString,accountId,apiKey)
.UseTestEnvironment(true)
.SubscribeToDocumentSignedEvent(signedEvent)
.SubscribeToDocumentPadesSavedEvent(padesSavedEvent)
.Start()
;
@runes83
runes83 / SwaggerConfig.md
Last active March 1, 2017 09:27
Swagger docs multiple projects

Swagger config

Multiple prosjekt files

configuration

      config.EnableSwagger(c =>
            {
                
                c.IncludeXmlComments(docFactory);
....
@runes83
runes83 / Swagger
Last active February 26, 2020 09:48
Swagger json
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "IdentiSign Identify",
"description": "This API enables authentication/identification through mutliple identityprvoiders such as Norwegian BankID, Swedish BankID, Nemid, etc.\r\n \r\n # Introduction\r\n This API is documented in **OpenAPI format** and is based on\r\n [Petstore sample](http://petstore.swagger.io/) provided by [swagger.io](http://swagger.io) team.\r\n It was **extended** to illustrate features of [generator-openapi-repo](https://github.com/Rebilly/generator-openapi-repo)\r\n tool and [ReDoc](https://github.com/Rebilly/ReDoc) documentation. In addition to standard\r\n OpenAPI syntax we use a few [vendor extensions](https://github.com/Rebilly/ReDoc/blob/master/docs/redoc-vendor-extensions.md).\r\n\r\n # OpenAPI Specification\r\n
@runes83
runes83 / Rebus multiple saga same message
Last active July 14, 2016 17:56
Nuget -> Rebus.Autofac
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using Rebus.Activation;
using Rebus.Autofac;
using Rebus.Bus;
using Rebus.Config;
Console:
'Performance.onwebkitresourcetimingbufferfull' is deprecated. Please use 'Performance.onresourcetimingbufferfull' instead.
https://services-preprod.bankid.no/favicon.ico Failed to load resource: the server responded with a status of 403 (Forbidden)
VM119:5709 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-d3JnQH6nyVjNaNs6mM9MYxbGoMf0FRfejNlZizFf2YU='), or a nonce ('nonce-...') is required to enable inline execution.
Qj @ VM119:5709rB @ VM119:5729mS @ VM119:16534(anonymous function) @ VM119:16867$2 @ VM119:13043Pq @ VM119:722M @ VM119:2863x @ VM119:2873LC @ VM119:732(anonymous function) @ VM119:16929$2 @ VM119:13043e @ VM119:12750
VM119:5727 Refused to load the script 'data:text/javascript;base64,' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'".
x @ VM119:5727rB @ VM119:5730mS @ VM119:16534(anonymous functi
@runes83
runes83 / Identityserver kurs
Last active January 29, 2016 23:00
Identityserver kurs
JwtSecurityTokenHandler.InboundClaimTypeMap.Clear();
Alltid bruk Microsoft.Security namespace for Claims eller blir det rot