maanas / sso

Single Sign On
56 stars 12 forks source link

Installation #1

Open houmanb opened 10 years ago

houmanb commented 10 years ago

Hi, I'm a newbe in using nginx. I would really like to setup a test project using sso. Is there a HOWTO about the installation of sso. I've already managed to install openresty and started nginx. I have a postgres DB and could rewrite your SQL code in order to load it into DB. I could easliy adapt your config in order to use ngx_postgres instead of drizzle. But I don't have any clue about how to install and have a look at your sso example. Any help or docs would be appreciated.

Bye B.

maanas commented 10 years ago

I can help you along. If you can setup a dev server. I can spare an hour on weekend to get it going. I m not really sure about postgres. I believe openresty comes with drizzle. So you are good. I m not sure how you return json. As module heavily relies on json returns from the mysql. my gtalk and skype id is m4manas

On 19-Dec-2013, at 8:49 PM, houmanb notifications@github.com wrote:

Hi, I'm a newbe in using nginx. I would really like to setup a test project using sso. Is there a HOWTO about the installation of sso. I've already managed to install openresty and started nginx. I have a postgres DB and could rewrite your SQL code in order to load it into DB. I could easliy adapt your config in order to use ngx_postgres instead of drizzle. But I don't have any clue about how to install and have a look at your sso example. Any help or docs would be appreciated.

Bye B.

— Reply to this email directly or view it on GitHub.

houmanb commented 10 years ago

Hi, Thanks a lot, this was a prompt reply I didn't expected. I'll setup a dev server incl. mysql (drizzle). I don't want to complicate the situation by changing the environment. I can walk the remaining part of the way on my own :-)

Regards

B.

I manage the connection/json return using the following config:

http {

upstream smarties { postgres_server 127.0.0.1 dbname=smarties user=postgres; }

server { listen 8080; server_name localhost; location /public/auth {

postgres_pass smarties; rds_json on; set_unescape_uri $user $arg_user; set_unescape_uri $pass $arg_pass;

postgres_escape $escaped_user $user; postgres_escape $escaped_pass $pass;

postgres_query HEAD GET "SELECT * FROM authenticate($escaped_user,$escaped_pass)"; postgres_rewrite no_rows 401; } }

On Thu, Dec 19, 2013 at 4:35 PM, maanas notifications@github.com wrote:

I can help you along. If you can setup a dev server. I can spare an hour on weekend to get it going. I m not really sure about postgres. I believe openresty comes with drizzle. So you are good. I m not sure how you return json. As module heavily relies on json returns from the mysql. my gtalk and skype id is m4manas

On 19-Dec-2013, at 8:49 PM, houmanb notifications@github.com wrote:

Hi, I'm a newbe in using nginx. I would really like to setup a test project using sso. Is there a HOWTO about the installation of sso. I've already managed to install openresty and started nginx. I have a postgres DB and could rewrite your SQL code in order to load it into DB. I could easliy adapt your config in order to use ngx_postgres instead of drizzle. But I don't have any clue about how to install and have a look at your sso example. Any help or docs would be appreciated.

Bye B.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/maanas/sso/issues/1#issuecomment-30937895 .