Skip to content

Instantly share code, notes, and snippets.

Sean Chase unboxedsolutions

Block or report user

Report or block unboxedsolutions

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FacebookWebApiJwt.cs
public class ProviderAndAccessToken {
public string Token { get; set; }
public string Provider { get; set; }
}
[AllowAnonymous]
[HttpPost]
[Route("JwtFromProviderAccessToken")]
public async Task<IHttpActionResult> JwtFromProviderAccessToken(ProviderAndAccessToken model) {
string id = null;
View Example Go REST Endpoint using Postgres
package main
/*
CLI to use pq: > go get github.com/lib/pq
CLI to use mux router from the Gorilla Web Toolkit: > go get github.com/gorilla/mux
SQL Script:
CREATE TABLE Customer
(
CustomerId serial NOT NULL,
View SwiftExample1
class Foo {
static func getNumber() -> Int {
return 88
}
class func getAnotherNumber() -> Int {
return 99
}
}
You can’t perform that action at this time.