Skip to content

Bluesky OAuth2 Client, with Vanilla JavaScript (post, hosted in dev.to)

Notifications You must be signed in to change notification settings

PIPOGit/OAuthBluesky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluesky OAuth2 Client, with Vanilla JavaScript

Bluesky OAuth2 Client, with Vanilla JavaScript

Hi, there! ;^)

Introduction

This repo is about integrating Bluesky Authentication (OAuth + DPoP) in a "serverless" client application, ruled with only "Vanilla JavaScript". Fine for You? Ok... Let's go!

DISCLAIMER

This post is merely to illustrate "how-to". It's not a "working example"; mainly 'cause the tokens expire! ;^)

If you see any error, please don't doubt on contacting me.

The article that explains "how-to" has been posted in dev.to

Download and install

Just download the repo in a local folder and take note about the directory/folder where You have placed it.

Once downloaded, you need an Apache Server instance to run it, and configure it to be served. Here, We will use a "Location" directive, but can be configure using a "Virtual Host" either. No differences.

Alias /neocities "[path_to_your_local_folder]"
<Directory "[path_to_your_local_folder]">
	AllowOverride None
	Require all granted
</Directory>

Configure

After that, if you need to tune-up the configuration file, the file is located in: [path_to_your_local_folder]/js/data/config.json

But it should work "ootb": "out-of-the-box"

Run

And that's it!

After that, it's as easy as to point to: http://localhost/neocities/index.html

Enjoy!

About

Bluesky OAuth2 Client, with Vanilla JavaScript (post, hosted in dev.to)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published