Skip to content
Snippets Groups Projects
Commit b8088dc0 authored by syuilo's avatar syuilo
Browse files

✌️

parent 8e1b90ab
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,9 @@ export default Vue.extend({
name(): string {
return this.$route.query.name;
},
icon(): string {
return this.$route.query.icon;
},
permission(): string {
return this.$route.query.permission;
},
......@@ -75,6 +78,7 @@ export default Vue.extend({
await this.$root.api('miauth/gen-token', {
session: this.session,
name: this.name,
iconUrl: this.icon,
permission: this.permission || [],
});
......
......@@ -35,6 +35,8 @@ UUIDを生成する。以後これをセッションIDと呼びます。
表示する際、URLにクエリパラメータとしていくつかのオプションを設定できます:
* `name` ... アプリケーション名
* > 例: `MissDeck`
* `icon` ... アプリケーションのアイコン画像URL
* > 例: `https://missdeck.example.com/icon.png`
* `callback` ... 認証が終わった後にリダイレクトするURL
* > 例: `https://missdeck.example.com/callback`
* リダイレクト時には、`session`というクエリパラメータでセッションIDが付きます
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment