Skip to content

Instantly share code, notes, and snippets.

View abstractj's full-sized avatar

Bruno Oliveira da Silva abstractj

View GitHub Profile

User Management for the Aerogear Unfied Push Server

Introduction

The goal of this document is to describe how the User Management will be implemented in the Unified Push Server. Currently there is only one user created by default when installing UPS. Having the possibility to create multiple users is a "Must Have" and should be manageable from the Admin Console. Some roles should also be introduced

Roles / Permissions

var crypto = require('crypto');
var cipher = crypto.createCipher( process.argv[2], 'tacos' );
//aes-gcm 256
//key size must be 32
var cipher = crypto.createCipheriv('aes-256-gcm', '3zTvzr3p67VC61jmV54rIYu1545x4TlY', 'X6sIq117H0vR');
var cipher = crypto.createCipher('aes-256-gcm', '3zTvzr3p67VC61jmV54rIYu1545x4TlY');
//aes-gcm 128

This quickstart demonstrates the use of a number of HTML5, CSS3 and JavaScript techniques. The registration form uses client side validation based on the constraints also defined on the model class as well as new input attributes like placeholder and autofocus. The member table is populated using RESTful get calls, client side templating and CSS3 styling.

@abstractj
abstractj / store-spec.md
Created June 25, 2012 12:58 — forked from kborchers/store-spec.md
Initial persistence API draft

Persistence API - draft 0.1

This is a initial proposal on having a very simple persistence layer

Requirements

  • Persist data on local storage as a type of buffer
  • Enable data to be created/saved/persisted/queryied/removed to/from the server side

References

@abstractj
abstractj / store-spec.md
Created June 27, 2012 16:40 — forked from kborchers/store-spec.md
Initial persistence API draft

Persistence API - draft 0.1

This is a initial proposal on having a very simple persistence layer

Requirements

  • Persist data on local storage as a type of buffer
  • Enable data to be created/saved/persisted/queryied/removed to/from the server side

References

@abstractj
abstractj / gist:3912435
Created October 18, 2012 15:07 — forked from mstruk/gist:3912393
Android Meeting Minutes October 18, 2012
Meeting minutes:
Roadmap review:
===============
https://github.com/aerogear/beta.aerogear.org/blob/master/docs/planning/1.0.0/AeroGearAndroid.asciidoc
M1 progress:
------------
@abstractj
abstractj / gist:4002565
Created November 2, 2012 16:41 — forked from danbev/gist:4001775
Handling SecurityProvider Responses in AeroGear-Controller

Handling SecurityProvider Responses within AeroGear-Controller

This gist is a follow up a previous gist that investigated using CDI events for handling SecurityProvider responses.

Background

In short, a route can be configured so that only users belonging to certain groups can access the target endpoint. For example:

route()
       .from("/delorean").roles("admin")
 .on(RequestMethod.GET)
@abstractj
abstractj / gist:4031896
Created November 7, 2012 14:24 — forked from danbev/gist:4023803
AeroGear Server Side Interfaces

AeroGear Server Side Interfaces

This document describes the server side interfaces for AeroGear. Since all interactions use the Http protocol the interfaces in question are resource URLs.

Some of the exposed resource URLs are specific to AeroGear, for example if AeroGear-Security is in use, then there are certain URL that are exposed by default. But for most of the resource URLs the actual composition of the URLs is specific to the server side application. This document's indent is to be a guide for users creating new RESTful server side applications as well as for client developers to know how to interact with RESTful applications (what request/responses will look like).

Transport protocol

The APIs described in this document are based on Hypertext Transfer Protocol, version 1.1 and https is recommended. Please refer to the security section of this document for details why https is important.

Resources

A resource, or an endpoint, is identified by

@abstractj
abstractj / tuto.md
Last active October 13, 2015 13:58 — forked from sebastienblanc/tuto.md

#tuto

Intro

Web applications

  • In the past
    • Java applets
    • Servlets
    • Limited connectivity
  • Static pages
require 'rubygems'
require 'rack/oauth2'
client = Rack::OAuth2::Client.new(
:identifier => YOUR_CLIENT_ID,
:secret => YOUR_CLIENT_SECRET,
:redirect_uri => YOUR_REDIRECT_URI, # only required for grant_type = :code
:host => 'rack-oauth2-sample.heroku.com'
)