Avoid linking params during authentication not working in cronofy - cronofy

I want to create a new account every time user authenticates via cronofy, my link is as below
https://app.cronofy.com/oauth/authorize?
response_type=code&
**avoid_linking=true**&
client_id={clinet_id}&
redirect_uri={redirect_uri}&
scope={scope}
I saw in there documentation for that we need to pass "avoid_linking" params but still every account is created as a profile in previously created account
How to make it work so that every new user is created as a separate account with a new subId

Karl at Cronofy Support here. Once the accounts are linked, we need to unlink them before avoid_linking works as you expect.
Could you please email support#cronofy.com with the email address for the accounts you'd like unlinking, and we will get that sorted for you?
Many thanks
Karl

Related

Google calendar API: Copy conference data not working

We are trying to copy conference data from one event to other but it not working for non G-suite accounts. We are using Google.Apis.Calendar.v3 libraries for .net. Following is sample code :
Event firstEvent = service.Events.Get(calendarId, "eventId1").Execute();
secondEvent.ConferenceData = firstEvent.ConferenceData;
The same code works for G-suite accounts. Is there anything special that needs to be done for non Gsuite accounts or its not supported for them? May be we are missing something. Actually issue is instead of copy conference data it gives new conference data i.e new link, new signature even if same object is set to copy. It should give same link, same copy ConferenceData after creation, isn't it?
Any help will be appreciated. Thanks in advance!
References :
https://developers.google.com/calendar/create-events
https://developers.google.com/calendar/v3/reference/events/insert
This is an intended behavior. New events with attendees create a Conference automatically, so it's not possible to change it with the API. G Suite users don't have this limitation and can disable this option from the Admin console.

Can't insert a calendar to a user using service account

I have a service account setting up with wide domain delegation.
The domain contains about 300 accounts.
For each account, I want to create it own calendar called New_UserName_EDT other than the main calendar (called userName).
And for each New_UserName_EDT's user, I want to create an event depending on the user.
If it's possible, could you please tell me how can I add a calendar to a specific user under a domain using the service account ?.
If not, can I share the calendar New_UserName_EDT created with service account with event event1 (attendee is user1) with the user user1, without selecting the New_UserName_EDTand then on Settings and sharing > Share with specific people section, click on Add people and add user1 as described here ?.
Any suggestion will be appreciated.
Thanks in advance.
Just add required scope:
AclRule rule = new AclRule();
Scope scope = new Scope();
scope.setType("user").setValue("userName#domain");
rule.setScope(scope).setRole("reader");
// Insert new access rule
AclRule createdRule = service.acl().insert(createdCalendar.getId(), rule).execute();
HTH

Firebase auto generated UID changed?

I am using firebase for login and auth, and was using $createUser. For the first couple weeks working on my app the users I created were being generated with an UID like 'simplelogin:83'. Today, I am working on my app and users are being created with an UID that looks more like a GUID. Did something change on firebases' end? Can I control how that gets generated?
The format has indeed changed from <provider>:<id> into a single opaque UUID. For more information see this post where the change was announced.
There is no way for you to control the format of the user ids for your app. If you're having trouble adapting your code to the new format, reach out to support#firebase.com.

Registering new users via OAuth2 : what to set as user identifier for future log ins?

I have managed to successfully configure this. The problem is, when I change the lines below :
//I have set all requested data with the user's username
//modify here with relevant data
$user->setUsername($username);
$user->setEmail($username);
$user->setPassword($username);
into the information I want to retrive, such as real name, email, my generated password etc, when I click the Login button for Facebook per say, I am asked again if I want to connect with my local testing site.
From what I understand, in the documentation I linked above, this :
$user = $this->userManager->findUserBy(array($this->getProperty($response) => $username));
is the line that checks if the user exists or not, and the initial code by itself, sets either facebook_id or twitter_id (this is how I save them) as a new User *username*. If I change the line
$user->setUsername($username); //same as facebook/twitter _id
into
$user->setUsername(setProperUsername()); //sets a proper unique username
Then everytime I try to login I get the "Register" message. So, I have a general idea of how it works but I am having a hard time understanding some things:
1. When I have registered with Facebook and I login with twitter, I register again, no knew row is created, but missing twitter_id fields are updated/populated, username stays intact. How come HWI/FOSUB knows I am the same person when my previous data were from Facebook not Twitter?
2. If there is a global way of knowing I am the same person, what data from the $response object should I use as a key to identify already registered users?
After testing a lot with this, I have the answer if anyone runs into this type of situation
Check your default_target path, make it so it is /profile, /account etc, don't default to login again. Also, if a user is already logged in, do not make him access your login page. This was why my data was being updated. I was basically logged in with my Facebook account and registering with my Twitter account too.
No, there is no global way of knowing I am the same person. The $response object sent me a unique ID for that specific user according to the provider policy. You might use this to identify already registered users and log them in.

how to send an activation code to the user in create user wizard?

I wanted to verify the user who is registering on My Website(using Create User Wizard ) by sending them a code on their E-Mail ID given at registration time...and they will have to use that code to activate his account.
could u please help me with this
Thanks
I found an article that walks through doing something very similarl. The only difference I see between the way they did it and what you are doing is that they included the code in a URL that the user just clicks and you want to have them type it in a box.
Link: http://www.aspcode.net/Requiring-email-verification-for-new-accounts.aspx
or https://web.archive.org/web/20211020153319/https://www.4guysfromrolla.com/articles/062508-1.aspx

Resources