📜 ⬆️ ⬇️

OpenID Provider Prototype selection widget

I once wrote how to integrate OpenID authentication into your site. It was about the server side.
Now I'm talking about the UI part - the widget for choosing a provider.

As a client library for my project, I chose prototype and the first thing I did was googling for Google to look for a ready-made solution. I managed to find one, but only for jQuery - code.google.com/p/openid-selector

And so I had no choice but to write the OpenID selector myself. That's what happened
')
image

Sources can be found here code.google.com/p/openid-for-prototype

The appearance of the widget is fully customizable using css.

The code has a list of providers that will be displayed in the selector.

var OpenIDProviders = {

openid: {
name: 'OpenID',
label: ' OpenID.',
url: 'http://'
},
yandex: {
name: 'Yandex',
url: 'http://yandex.ru'
},
google: {
name: 'Google',
url: 'https://www.google.com/accounts/o8/id'
},


Unnecessary need to just delete, you need to add by example.

In the project in Google code there is an example of connection, this is just one line of code.

In general, everyone who wants to make their startup hospitable can use, as well as modify, this script for their needs.

Source: https://habr.com/ru/post/77539/


All Articles