Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irma_idin_webclient
Commits
03e59c13
Commit
03e59c13
authored
Apr 18, 2017
by
Sietse Ringers
Browse files
Also set idin server url as grunt parameter
parent
3dfce9a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Gruntfile.js
View file @
03e59c13
module
.
exports
=
function
(
grunt
)
{
// Setup urls for the keyshare server, api server, and irma_js
// these are used to configure the webclient
var
api_server_url
,
api_web_url
,
irma_js_url
;
var
api_server_url
,
api_web_url
,
irma_js_url
,
idin_server_url
;
if
(
(
typeof
(
grunt
.
option
(
"
api_server_url
"
))
===
"
undefined
"
)
)
{
console
.
log
(
"
INFO: set api_server_url (possibly also irma_js_url) to enable email issuing
"
);
console
.
log
(
"
INFO: set api_server_url (possibly also irma_js_url) to enable issuing
"
);
}
if
(
(
typeof
(
grunt
.
option
(
"
idin_server_url
"
))
===
"
undefined
"
)
)
{
console
.
log
(
"
INFO: set idin_server_url to enable app
"
);
}
idin_server_url
=
grunt
.
option
(
"
idin_server_url
"
);
api_server_url
=
grunt
.
option
(
"
api_server_url
"
)
+
"
/api/v2/
"
;
api_web_url
=
grunt
.
option
(
"
api_web_url
"
)
||
grunt
.
option
(
"
api_server_url
"
);
api_web_url
+=
"
/server/
"
;
irma_js_url
=
grunt
.
option
(
"
irma_js_url
"
)
||
grunt
.
option
(
"
api_server_url
"
);
irma_js_url
+=
"
/client/
"
;
console
.
log
(
"
idin_server_url:
"
,
idin_server_url
);
console
.
log
(
"
api_server_url:
"
,
api_server_url
);
console
.
log
(
"
api_web_url:
"
,
api_web_url
);
console
.
log
(
"
irma_js_url:
"
,
irma_js_url
);
...
...
@@ -50,6 +55,9 @@ module.exports = function (grunt) {
},
{
pattern
:
/
\[
IRMA_JS_URL
\]
/g
,
replacement
:
irma_js_url
,
},
{
pattern
:
/
\[
IDIN_SERVER_URL
\]
/g
,
replacement
:
idin_server_url
,
},
],
},
...
...
src/index.html
View file @
03e59c13
...
...
@@ -11,7 +11,7 @@
<script
type=
"text/javascript"
src=
"JS/common.js"
></script>
<script
type=
"text/javascript"
src=
"JS/iDIN.js"
></script>
<script
type=
"text/javascript"
>
var
server
=
"
https://privacybydesign.foundation/tomcat/irma_idin_server
/api/v1/idin
"
;
var
server
=
"
[IDIN_SERVER_URL]
/api/v1/idin
"
;
</script>
<title>
IRMA attributen vanuit iDIN
</title>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment