In-AppBilling Subscription Verification - c#

I would to the see subscription status of user using purchase token before logging into the application. How will I implement the code in Xamarin Forms? I am using In-AppBilling plugin.

Related

MS Graph C# .Net Create Calendar Event for user with RSVP enabled

We are currently integrating Microsoft Graph api into a website to create calendar events generated from our system, where users can rsvp to the event.
We are currently using the Auth code flow for authorization for the users.
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Where the frontend is a react app, and the backend is a .Net 4.8 C# project.
For our google solution, we create events for every integrated user individually and assign the organizer to be a service email account tied to our site. This allows the users to RSVP to it, and we can track what their status is based on their response. This also allows us to track and delete the individual events on a per user basis when necessary.
When searching and testing for a MS Graph solution, changing the organizer does not work based on the answer here.
Are the organizer and isOrganizer Attributes in MS-Graph event working?
As when the event is created, the individual that the event was created for is considered the organizer of the event. This is causing the RSVP to not show in outlook.
Is there a way to create an event for a user where the organizer is a generic email account (not an outlook account), while also keeping track of that event Id so we can track the RSVP status, and make any updates when necessary?

Cortana Skill authentication from UWP app

I have a UWP app which has Cortana integration using Commands (VCD definitions). The app requires a user to be logged in to it (using Facebook or Google).
Now I am writing a Cortana Skill - it will offer the same functionality as the UWP app, but would work on other devices. For it to work, the user would need to log in, just like the UWP app.
I understand how the login is done in Cortana Skill (using the BotBuilder) - after login, the access & refresh tokens are somehow stored with the user's profile, so he doesn't have to login again on his other devices. I actually already built this, so the user can login with facebook/google in Cortana.
But I would like to do this from the UWP app - that is after the users logs into the UWP app, I want to take the access/refresh token and give it to some Microsoft endpoint, so that user doesn't have to login twice (once in UWP, second time in Cortana).
Is this possible? Is there some API I can use for this?
The channel (Cortana) handles OAuth flow and token caching using "Connected Services". At this time, Cortana does not support single sign on or cross-client identity. (You're UWP app and your Cortana skill are effectively two apps.) This doesn't mean you need to use "Connected Services", but you'd be implementing around built in functionality for things like handling of refresh tokens.

Azure Notification Hub PNS and multiple users

Introduction
I'm working on a backend which is used by iOS and Android mobile apps and have decided to use Azure Notification Hubs for push notifications. It is written in .NET and uses device registration from a backend (Registration).
User is able to use same application on multiple devices at the same time and requirements are that users should be able to receive notifications on all devices. There is also possibility that multiple users will use app on the same device - authentication is done using username and password.
Registrations are saved in DB table which stores:
registrationId
platform
reference to user
This makes it possible for the same user to receive notifications on multiple devices.
Registration
Registration is done in the following way on the iOS device:
App is started
PNS handle is received from APNS (token)
Username and password are entered
App asks for RegistrationId from backend
RegistrationId is saved to local storage
Registration is performed using RegistrationId, Handle and Platform parameters which are sent to Web API endpoint
Tag "username:test1" is added so notification can be sent to specific user
Problem(s)
I've noticed that PNS Identifier is same for two (or more) registrations (please see screenshot). Developer which is working on the iOS app pointed to the following question: Obtain NEW Apple device token?
Is it valid to have same PNS Identifier for multiple installations provided that I have unique tags?
If there are multiple duplicates of PNS Identifier application would display multiple notifications (notifications are filtered by tag "username")?
Should the PNS Identifier be unique for app, device or user?

Windows Live ID authentication : Get User Details

I have implemented Windows Live ID authentication as per below link steps :
Windows Live ID Authentication Implementation
Is there any way to get Email ID from the response of the Service which is entered by User while logging in ?
I have referred below link but I see that we only get Name Identifier token from the response service.
Service Response
Purpose : Once User logs in to the Application using Windows Live ID Authentication, I want to filter Menu items to be displayed on the Dashboard Based on the Role assigned to that User. So I need to check in Application Database that what kind of Role is assigned to the logged in User using Email ID.
It looks like link provided is to an implementation that will soon be obsolete.
This topic describes functionality that will be obsolete. This functionality is provided only to support legacy applications. Live Connect incorporates features that provide equivalent functionality.
I would recommend implementing Windows Live Authentication using the Apps 2.0 endpoints. You can register your app at https://apps.dev.microsoft.com. Requesting email is then a matter of setting your scope to 'scope=profile+openid' in an endpoint requests. Alternatively if you are working in JavaScript the adal.js library will retrieve the profile as part of login.

How can I unregister my user from my application?

I am using facebook C# SDK in my application and using Graph API. Everything is working fine. However, I didn't get how to unregister my users from my application meaning revoke the rights given to my application.
I didn't get how to do this using SDK. Any help would be appreciated. Let me know if my question is not clear.
From the user documentation:
You can de-authorize an application or revoke a specific extended
permissions on behalf of a user by issuing an HTTP DELETE request to
PROFILE_ID/permissions with a user access_token for that app.
Also, you can still call auth.revokeAuthorization or auth.revokeExtendedPermission.

Categories