This commit is contained in:
aj 2017-08-09 18:22:41 +00:00
parent f91a7771c9
commit d709c989a7
4 changed files with 14 additions and 12 deletions

View File

@ -1 +1 @@
../assets/org.oauth3/.well-known/oauth3
../assets/oauth3.org/.well-known/oauth3

View File

@ -1,16 +1,18 @@
This is a WALNUT module representing the html package for oauth3.org.
It must be installed to `/srv/walnut/packages/pages/org.oauth3`
It must be installed to `/srv/walnut/packages/pages/issuer@oauth3.org`
```bash
git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3
pushd /srv/walnut/packages/pages/org.oauth3
git clone git@git.daplie.com:OAuth3/issuer_oauth3.org.git /srv/walnut/packages/pages/issuer@oauth3.org
ln -s issuer@oauth3.org /srv/walnut/packages/pages/org.oauth3
pushd /srv/walnut/packages/pages/issuer@oauth3.org
bash ./install.sh
popd
```
```bash
echo "issuer@oauth3.org" >> /srv/walnut/packages/sites/EXAMPLE.COM
echo "org.oauth3" >> /srv/walnut/packages/sites/EXAMPLE.COM
```
This uses the OAuth3 JavaScript SDK `oauth3.js` as a subpackage in `/srv/walnut/packages/pages/org.oauth3/assets/org.oauth3`.
This uses the OAuth3 JavaScript SDK `oauth3.js` as a subpackage in `/srv/walnut/packages/pages/issuer@oauth3.org/assets/oauth3.org`.

View File

@ -147,9 +147,9 @@
<script src="./js/bootstrap.min.js"></script>
<script src="./js/issuer.js"></script>
<script src="./js/script.js"></script>
<script src="/assets/org.oauth3/oauth3.core.js"></script>
<script src="/assets/org.oauth3/oauth3.issuer.js"></script>
<!--script src="/assets/org.oauth3/oauth3.mock.js"></script-->
<script src="/assets/oauth3.org/oauth3.core.js"></script>
<script src="/assets/oauth3.org/oauth3.issuer.js"></script>
<!--script src="/assets/oauth3.org/oauth3.mock.js"></script-->
</body>
</html>

View File

@ -2,13 +2,13 @@
set -e
set -u
# git clone git@git.daplie.com:OAuth3/org.oauth3.git /srv/walnut/packages/pages/org.oauth3
# git clone git@git.daplie.com:OAuth3/issuer_oauth3.org.git /srv/walnut/packages/pages/issuer@oauth3.org
mkdir -p assets
if ! [ -d ./assets/org.oauth3 ]; then
git clone git@git.daplie.com:OAuth3/oauth3.js.git ./assets/org.oauth3
if ! [ -d ./assets/oauth3.org ]; then
git clone git@git.daplie.com:OAuth3/oauth3.js.git ./assets/oauth3.org
fi
pushd ./assets/org.oauth3
pushd ./assets/oauth3.org
git checkout v1
git pull
popd