File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
boruta_admin/assets/src/models
boruta_identity/assets/wallet/src Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ import { addClientErrorInterceptor } from './utils'
5
5
6
6
const allGrantTypes = [
7
7
'client_credentials' ,
8
+ 'agent_credentials' ,
8
9
'password' ,
9
10
'authorization_code' ,
11
+ 'agent_code' ,
10
12
'refresh_token' ,
11
13
'implicit' ,
12
14
'preauthorized_code' ,
Original file line number Diff line number Diff line change 30
30
</div >
31
31
</div >
32
32
</div >
33
+ <form class =" ui form card" >
34
+ <div class =" content" >
35
+ <div class =" header" >
36
+ Share content
37
+ </div >
38
+ <div class =" description" >
39
+ <textarea placeholder =" content" v-model =" shareContent" ></textarea >
40
+ </div >
41
+ </div >
42
+ <div class =" extra content" >
43
+ <a :href =" shareUrl" class =" ui basic fluid blue button" >Share credential offer</a >
44
+ </div >
45
+ </form >
33
46
</div >
34
47
</div >
35
48
<div class =" modal-wrapper" v-if =" credential" >
@@ -64,7 +77,9 @@ export default defineComponent({
64
77
data () {
65
78
return {
66
79
formattedCredentials: [],
67
- credential: null
80
+ shareContent: null ,
81
+ credential: null ,
82
+ shareUrl: window .env .BORUTA_OAUTH_BASE_URL + ` /oauth/authorize?client_id=00000000-0000-0000-0000-000000000001&redirect_uri=http://localhost:4000/accounts/wallet/agent-code&response_type=code`
68
83
}
69
84
},
70
85
methods: {
@@ -74,6 +89,11 @@ export default defineComponent({
74
89
hideCredential (credential ) {
75
90
this .credential = null
76
91
}
92
+ },
93
+ watch: {
94
+ shareContent (value ) {
95
+ localStorage .setItem (' shareContent' , value)
96
+ }
77
97
}
78
98
})
79
99
</script >
Original file line number Diff line number Diff line change 1
1
import { createRouter , createWebHistory , RouteRecordRaw } from 'vue-router'
2
+
2
3
import HomeView from '../views/HomeView.vue'
3
4
import Siopv2View from '../views/Siopv2View.vue'
4
5
import VerifiableCredentialsIssuanceView from '../views/VerifiableCredentialsIssuanceView.vue'
5
6
import VerifiablePresentationsView from '../views/VerifiablePresentationsView.vue'
7
+ import AgentCodeView from '../views/AgentCodeView.vue'
6
8
7
9
const routes : Array < RouteRecordRaw > = [
8
10
{
@@ -25,6 +27,11 @@ const routes: Array<RouteRecordRaw> = [
25
27
name : 'verifiable-presentation' ,
26
28
component : VerifiablePresentationsView
27
29
} ,
30
+ {
31
+ path : '/agent-code' ,
32
+ name : 'agent-code' ,
33
+ component : AgentCodeView
34
+ } ,
28
35
{
29
36
path : '/callback' ,
30
37
name : 'callback' ,
You can’t perform that action at this time.
0 commit comments