Skip to content

Instantly share code, notes, and snippets.

View resilva87's full-sized avatar
:octocat:

Renato Silva resilva87

:octocat:
View GitHub Profile
@resilva87
resilva87 / template.go
Created May 27, 2021 23:36
Template processar arquivo em Go
package main
import (
"bufio"
"encoding/json"
"fmt"
"os"
"strconv"
"strings"
)
@resilva87
resilva87 / gist:c88541cc6a00f360f4ae2ff4e252b95b
Created May 29, 2017 18:19 — forked from aeisele/gist:2845397
use spring security oauth2 resource owner password scheme as authentication provider
public class ResourceOwnerAuthenticationProvider implements AuthenticationProvider {
private String apiEndpoint;
private String clientId;
private String accessTokenUri;
private String clientSecret;
private List<String> scope;
@Override