How Ckan-oauth2 extension works? - api

I have been researching on oauth2 extension of ckan, from below url's :
https://github.com/conwetlab/ckanext-oauth2
https://github.com/etalab/ckanext-oauth2
i have installed the extension and added the configurations to development.ini. I have setup the oauth server too..
but i'm not sure how this extenstion actually works ?
can anyone please suggest me some documentions for this...
Thanks in advance

I got my Ckan-Oauth2 extension working atlast..
How this extension Works or what changes after adding this extension are :
Authentication is done by Oauth Server instead of Ckan basic authentication.
Accessing API's can be done by Access Token generated by Oauth Server instead of static API-KEY.
I couldn't find any documentation for this but i have tested these.. :)
Hope it helps

Related

How to call Bitrix24's API using Postman?

I researched on google and I'm stuck while I try to find out Bitrix24 API docs for users using PostMan. Is there an available resource that could help me solve my trouble? , I hope I could retrieve a document or some things like this. Thanks for reading <3
Try this endpoint on your postman
https://example.bitrix24.id/rest/crm.product.list
This is for the CRM Product List
https://training.bitrix24.com/rest_help/crm/products/crm_product_list.php
if this dosent work you can put .json
https://example.bitrix24.id/rest/crm.product.list.json
for the authentication you can go to Developer Resources - Other - Local Application
and put Postman callback on the Handler (https://oauth.pstmn.io/v1/callback).
dont forget to click the Script Only.

Symfony 3.1: configuration of ldap component as service

I'm writing my first Symfony app and and I need authenticate users over LDAP/AD, but I run out of documentation...
I found many solutions for use LdapClient, but it tagged as deprecated. So, i check for use the new one Ldap class as recommended, but I not found documentation for use it. The documentation of Ldap component for the current version (3.1) suggest to use LdapClient yet! It isn't updated yet?
I don't know how to do: must we create an adapter for add a Ldap service? If so, how to proceed?
Any help will be appreciated, thanks!
Check out this cookbook article for configuring LDAP authentication using the builtin Symfony component:
http://symfony.com/doc/current/cookbook/security/ldap.html
I also have a bundle I maintain that includes LDAP authentication that works well with AD called LdapToolsBundle. It has documentation on the main page for the app/config/config.yml entries needed to configure your domain for use in the bundle, and also some details on configuring authentication in app/config/security.yml here.
The bundle above provides a LDAP service called ldap_tools.ldap_manager that can be used to query/create/modify different types AD objects.
take a look at my Blog:
https://alvinbunk.wordpress.com/2016/03/25/symfony-ad-integration/
This requires FOSUserBundle and FR3DLdapBundle, but I think if you go through all that documentation you should be able to get LDAP/AD integration with Symfony3 working.
EDIT #2
Below is a second easier solution:
https://alvinbunk.wordpress.com/2017/09/07/symfony-ldap-component-ad-authentication/

TYPO3 - external authentication of be_users with tx_sv_authbase

I am using TYPO3 4.5 and have to authenticate fe_users and be_users from an external source.
In my extension I have subclassed tx_sv_authbase and implemented the getUser() and authUser() functions.
For fe_users everything works fine! Depending on what I return in authUser() the login happens or not.
But I can't get it to work for be_users. Shouldn't it work exactly the same? No matter if I return 200 or true, I can't login with my extension. What could be the reason for this? Any hints?
Yes, it should be exactly the same for be_users as for fe_users.
Please check ext_localconf.php, if both authUserFE and authUserBE are used as subtypes (seperated by comma).
I have created an Yubikey OTP auth service for TYPO3, which authenticates local TYPO3 users with an Yubikey OTP. My extension does not use getUser(), but authentication works both for fe_users and be_users. Maybe this helps you debugging and fixing your problem.
I got it to work now! Also the RSA encryption system which is default in TYPO3 6.2 is awesome! :)
The problem was in my getUser() function. There you have to map to existing users (if your user names from the external source aren't also contained in the TYPO3 database) and I forgot that my backend user name is different to my frontend user name.
The other confusing thing was that for some changes to take effect you always have to delete the cache files in typo3conf. This costed me some time. :)

Restlet User Authentication

I'm relatively new to Restlet, so currently I am experimenting with Restlet 2.1, and I want to add user authentication
I am currently using Apache ReverseProxy, and planning to use it as SSL-proxy, so I'll probably encrypt/decrypt on Apache, Restlet will get plain text
I found sayings about using the Restlet ChallengeAuthentication, but can not find it on 2.1 API doc, and since Restlet just updated their site, most Urls are just broken
so it'd be really nice if someone can give me some guide on how to build it or give me a functional link to some examples eg:
how do I check for authentication,
how do I detect cookie,
how do I set a secure cookie,
how do I read from that encrypted cookie
also another design question, would I be better off using a function that tries to decrypt the cooke for auth, than actually storing the cookie data in a DB like Redis?
Thanks in advance!
i did authentication using 2.1.2 restlet on GAE.
following code may help you how to provide authentication in restlet
ChallengeAuthenticator guard = new ChallengeAuthenticator(getContext().createChildContext(), ChallengeScheme.HTTP_BASIC,"Your application.");
MapVerifier verifier = new MapVerifier();
verifier.getLocalSecrets().put(userName, password.toCharArray());
guard.setVerifier(verifier);
guard.setNext(this);
guard.setNext(anyclass.class);
router.attach("/v1", guard);
and this link http://restlet.org/learn/tutorial/2.1/ for more information about restlet.

Vkontakte authentication using django-social-auth

I have a problem integrating Vkontakte authentication using django-social-auth (https://github.com/omab/django-social-auth). I know that I have set everything right with AUTHENTICATION_BACKENDS as well as the API_KEYS and SECRETS for VKONTAKTE but still it does not work. I also have an authentication with Facebook and it works fine so I know that I am doing it right. Django-Social-Auth's documentation says about adding some JS script to make the authentication work but doesn't even provide some useful information about the script.
Can somebody provide some useful information about this? If you could provide some very nice tutorial on how to implement Vkontakte authentication using django-social-auth that would be great!
Thanks a lot guys! =)
If the url you're using is something like "http://localhost:8000/login/vkontakte/", try to change it to "http://localhost:8000/login/vkontakte-oauth2/".