http://stackoverflow.com/questions/10827920/google-oauth-refresh-token-is-not-being-received The refresh_token is only provided on the first authorization from the user. Subsequent authorizations, such as the kind you make while testing an OAuth2 int…
jose4j / JWT Examples View History JSON Web Token (JWT) Code Examples Producing and consuming a signed JWT Using an HTTPS JWKS endpoint Using JWKs X.509 Something else? (X.509 Certificates at some HTTPS endpoint, maybe) Two-pass JWT consumption Produ…
AngularJS is an awesome javascript framework. With it’s $resource service it is super fast and easy to connect your javascript client to a RESTful API. It comes with some good defaults to create a CRUD interface. However if you are using an API, whic…
@Bean public CorsFilter corsFilter() { final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); final CorsConfiguration config = new CorsConfiguration(); config.setAllowCredentials(true); // 允许cookies跨域 config.addAllowedO…