Skip to content

Commit dce9be0

Browse files
authored
Merge pull request #9 from brionmario/restructure
Copy the `README` to the lib & add `type -> module` in lib package.json
2 parents 1ceddce + 251c161 commit dce9be0

File tree

5 files changed

+97
-7
lines changed

5 files changed

+97
-7
lines changed

.changeset/twenty-clocks-retire.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@asgardeo/remix-auth-asgardeo': patch
3+
---
4+
5+
### v0.0.2 🎉
6+
7+
- Add README to the released artifact.

.github/workflows/builder.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This workflow will build the
2+
3+
name: 🧱 Builder
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
concurrency: ${{ github.workflow }}-${{ github.ref }}
12+
13+
env:
14+
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
15+
16+
jobs:
17+
release:
18+
name: 📦 Release
19+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
node-version: [lts/*]
24+
pnpm-version: [latest]
25+
steps:
26+
- name: ⬇️ Checkout
27+
id: checkout
28+
uses: actions/checkout@v2.3.3
29+
with:
30+
fetch-depth: 0
31+
token: ${{ env.GH_TOKEN }}
32+
33+
- name: 🟢 Setup node
34+
id: setup-node
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
39+
- name: 🥡 Setup pnpm
40+
id: setup-pnpm
41+
uses: pnpm/action-setup@v2.1.0
42+
with:
43+
version: ${{ matrix.pnpm-version }}
44+
run_install: false
45+
46+
- name: 🎈 Get pnpm store directory
47+
id: get-pnpm-cache-dir
48+
run: |
49+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
50+
- name: 🧩 Install Dependencies
51+
id: install-dependencies
52+
run: pnpm install
53+
54+
- name: 🏗️ Build
55+
id: build
56+
run: pnpm build

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
id: build
5757
run: pnpm build
5858

59+
- name: 📦 Prepare for Publish
60+
id: prepare-for-publish
61+
run: |
62+
# Copy the README.md file to the lib directory.
63+
cp README.md lib
64+
5965
- name: 📣 Create Release Pull Request or Publish to npm
6066
id: changesets
6167
uses: changesets/action@v1

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
# AsgardeoStrategy
1+
<h1 align="center" style="color: #343a40;margin: 20px 0;">
2+
<p align="center">Remix Auth Asgardeo</p>
3+
</h1>
24

3-
The Asgardeo strategy, which extends the OAuth2Strategy, is used to authenticate users against an Asgardeo organization.
5+
<div align="center">
6+
<a href="https://github.com/asgardeo/remix-auth-asgardeo/actions/workflows/release.yml"><img src="https://github.com/asgardeo/remix-auth-asgardeo/actions/workflows/release.yml/badge.svg" alt="🚀 Release"></a>
7+
<a href="https://github.com/asgardeo/remix-auth-asgardeo/actions/workflows/builder.yml"><img src="https://github.com/asgardeo/remix-auth-asgardeo/actions/workflows/builder.yml/badge.svg" alt="🧱 Builder"></a>
8+
9+
<a href="https://stackoverflow.com/questions/tagged/wso2is"><img src="https://img.shields.io/badge/Ask%20for%20help%20on-Stackoverflow-orange" alt="Stackoverflow"></a>
10+
<a href="https://discord.gg/wso2"><img src="https://img.shields.io/badge/Join%20us%20on-Discord-%23e01563.svg" alt="Discord"></a>
11+
<a href="https://github.com/asgardeo/remix-auth-asgardeo/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License"></a>
12+
<a href="https://twitter.com/intent/follow?screen_name=wso2"><img src="https://img.shields.io/twitter/follow/wso2.svg?style=social&label=Follow" alt="Twitter"></a>
13+
</div>
14+
15+
<br>
16+
17+
[Remix Auth](https://remix.run/resources/remix-auth) is a flexible authentication framework for [Remix](https://remix.run/) applications that allows developers to implement various strategies for user authentication.
18+
19+
The Asgardeo strategy is a custom implementation of the [OAuth2Strategy](https://github.com/sergiodxa/remix-auth-oauth2) designed specifically for integrating with [Asgardeo](https://wso2.com/asgardeo), an identity-as-a-service (IDaaS) platform. This strategy enables developers to authenticate users against an Asgardeo organization using OpenID Connect (OIDC).
420

521
## Supported runtimes
622

@@ -109,9 +125,13 @@ export const action = async ({ request }: ActionFunctionArgs) => {
109125
};
110126
```
111127

112-
## Development
128+
## Contribute
129+
Please read [Contributing Guide](CONTRIBUTING.md) for details on how to contribute to Remix Auth Asgardeo. Refer to [General Contribution Guidelines](http://wso2.github.io/) for details on our code of conduct, and the process for submitting pull requests to us.
130+
131+
### Reporting issues
132+
We encourage you to report issues, improvements, and feature requests creating [Github Issues](https://github.com/asgardeo/remix-auth-asgardeo/issues).
133+
134+
**Important**: Please be advised that security issues MUST be reported to <a href="mailto:security@wso2.com">security@wso2com</a>, not as GitHub issues, in order to reach the proper audience. We strongly advise following the WSO2 Security Vulnerability Reporting Guidelines when reporting the security issues.
113135

114-
1. Clone this repo.
115-
2. Run `npm install` to install the dependencies.
116-
3. Run `npm link` to create a symlink.
117-
4. Run `npm install remix-auth-asgardeo` in your remix project.
136+
## License
137+
This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.

lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"strategy",
2222
"asgardeo"
2323
],
24+
"type": "module",
2425
"main": "./dist/index.js",
2526
"types": "./dist/index.d.ts",
2627
"files": [

0 commit comments

Comments
 (0)