Git Clone from GitHub over https with two-factor authentication

I recently began using two-factor authentication on GitHub, and I am now unable to use git over https on private repos in the usual way: peter@computer:~$ git clone https://github.com/[…]/MyPrivateRepo Cloning into ‘MyPrivateRepo’… Username for ‘https://github.com’: […] Password for ‘https://[…]@github.com’: remote: Invalid username or password. fatal: Authentication failed for ‘https://github.com/[…]/MyPrivateRepo/’ If I disable two-factor authentication I … Read more

Adding ASP.NET MVC5 Identity Authentication to an existing project

I have seen lots of similar pages on the web, but most of them use a new project instead of an existing one, or don’t have the necessary features. So, I have an existing MVC 5 project and want to integrate ASP.NET MVC5 Identity with log in, email confirmation and password reset features. In addition … Read more

What’s a redirect URI? how does it apply to iOS app for OAuth2.0?

Beginner programmer here, please pardon ignorance & explanations will be really nice 🙂 I’ve tried to read the tutorials for a certain OAuth 2.0 service, but I don’t understand this redirect URI… in my particular context, let’s say I’m trying to build an iPhone app that uses OAuth 2.0 for some service. I have an … Read more

Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here’s an explanation of my situation: I am attempting to set a cookie for an API that is running on localhost:4000 in a web app that is hosted on localhost:3000. It seems I’m receiving the … Read more

Creating an API for mobile applications – Authentication and Authorization

Overview I’m looking to create a (REST) API for my application. The initial/primary purpose will be for consumption by mobile apps (iPhone, Android, Symbian, etc). I’ve been looking into different mechanisms for authentication and authorization for web-based APIs (by studying other implementations). I’ve got my head wrapped around most of the fundamental concepts but am … Read more

JWT vs cookies for token-based authentication

I read some posts about “JWT vs Cookie” but they only made me more confused… I want some clarification, when people talking about “token-based authentication vs cookies”, cookies here merely refer to session cookies? My understanding is that cookie is like a medium, it can be used to implement a token-based authentication(store something that can … Read more

Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 6 … Read more