angularjs - Multiple success callback_urls with Dancer::Plugin::Auth::Google? -


im using dancer::plugin::auth::google openid login system.

i need have second callback_url.

is possible? if so, how done , how can define when each url should used?

in practice have 2 different buttons on different sites call , redirect google login. 1 general login page redirects on success given callback url(config.yml).

the second button rendered in angularjs modal window on server request after session expires. scenario need second callback url for.

the idea when session has expired have google login on new tab in stead of redirecting original window(to avoid refreshing page , loosing possibly uncommitted data) , on successful callback redirect alternative callback_url static page closes on load , maybe sets focus(not sure work on browsers) original window/tab along has not had refreshed , threfor wont delete un saved data of forms holds.

right "config.yml" holds only:

plugins: 'auth::google':     client_id:        'xxxxxx.apps.googleusercontent.com'     client_secret:    'xxxx'     scope:            'profile email'     access_type:      'online'     callback_url:     'http://localhost:3000/callback'     callback_success: '/auth/orised/google'     callback_fail:    '/auth/fail' 


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -