Marcos Nils
fdbb3f1e66
remove localhost CORS as it's not needed anymore ( #637 )
...
fixes #636
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2024-12-02 00:34:52 -03:00
Marcos Lilljedahl
4c099ab398
add new docker provider oauth scope
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2023-12-13 12:09:59 -03:00
Marcos Lilljedahl
ed82247c9a
fix CORS origins to avoid domain hijacking
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2023-03-02 01:50:08 -03:00
Marcos Lilljedahl
7188d83f86
Remove unnecessary oauth method
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2022-07-13 18:26:52 -03:00
Marcos Lilljedahl
a5a23bf2d9
Use new docker login
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2022-07-13 12:07:31 -03:00
Marcos Lilljedahl
102c998028
Fix incorrect OOC handler
...
Fixes #462
2021-04-18 17:39:13 -03:00
Marcos Lilljedahl
c0aaf0a3a4
Fix Users handler. This never worked :D
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2021-03-04 00:16:42 -03:00
Marcos Nils
3a762ba15c
Replace go-bindata with go 1.16 embed ( #452 )
2021-02-21 13:58:29 -03:00
Marcos Lilljedahl
7f304a3415
Don't crash if landing can't be fetched
2020-11-13 11:10:48 -03:00
Marcos Lilljedahl
f9800927fe
Add PWG.dev to allowed hosts
2020-10-25 19:03:16 -03:00
Marcos Lilljedahl
f898a14485
Refactor serveAsset to use ServeContent instead.
2020-10-20 01:21:40 -03:00
Paul Jolly
ef0ac9be48
Simplify the setup of bundled assets ( #436 )
...
1. Move the generated file to handlers - it better belongs there
2. Ensure that all file serves are also handled by the asset store
Co-authored-by: Marcos Lilljedahl <marcosnils@gmail.com >
2020-10-20 00:45:42 -03:00
Paul Jolly
1e0eb1f329
main: embed assets from www to allows PWD to run standalone ( #425 )
...
Generate these assets in config because this package is imported by
most.
Add internal/addgenheader as a simple helper because go-bindata doesn't
output the write header.
Also update test CI workflow to regenerate and check commit is clean.
2020-10-06 14:33:11 +01:00
Marcos Lilljedahl
c8416efb16
Repalce facebook oauth with google
2020-06-12 01:44:24 -03:00
Marcos Lilljedahl
79a7e6317b
Change close to POST as sendBeacon uses that method
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com >
2020-02-25 23:37:46 -03:00
Marcos Lilljedahl
db8f4e6519
Add close GET endpoint for sendBeacon
2020-02-25 23:23:45 -03:00
Marcos Lilljedahl
4b1dc52c59
Move DindVolumeSize to playground opts
2019-04-23 01:47:06 -03:00
Marcos Lilljedahl
40197c4cdf
Make docker Oauth endpoint configurable
2019-03-31 14:14:05 -03:00
Marcos Lilljedahl
91912732aa
Add docker.com CORS support
2019-03-28 23:18:59 -03:00
Marcos Lilljedahl
b363a35a61
Fix typo
2018-04-30 10:23:22 -03:00
Marcos Lilljedahl
cf13558615
Add PWK
2018-04-25 13:23:48 -03:00
Marcos Lilljedahl
8353f5a42c
Fix localhost
2018-04-20 16:45:40 -03:00
Marcos Lilljedahl
2aa327a86f
Add localhost as a CORS handler for local SDK testing
2018-04-15 18:07:02 -03:00
Marcos Lilljedahl
ed5ca6bc4e
Add support for http-01 handler
2018-03-04 11:54:01 -03:00
Marcos Lilljedahl
0414f4933c
Fix CORS origin
2018-02-19 01:04:23 -03:00
Marcos Lilljedahl
04b25875ac
Added play with moby to CORS allowed headers
2018-02-19 00:49:35 -03:00
Marcos Lilljedahl
d7b2dc69ff
Fix Origins set in CORS headers
2018-02-19 00:42:29 -03:00
Marcos Lilljedahl
54b961a950
Update Gorilla handlers and add CORS option
2018-02-19 00:21:19 -03:00
Marcos Lilljedahl
9b4a781f71
Change CORS allowed headers to PWD
2018-02-18 23:06:24 -03:00
Marcos Lilljedahl
6bfa8b0d21
Add ee-beta site
2018-01-24 00:58:11 -03:00
Marcos Lilljedahl
e8583f7e3e
Add wildcard to cors
2018-01-24 00:49:14 -03:00
Marcos Lilljedahl
e66ed55a9b
Add trainngs and pwm origin headers
2018-01-23 11:51:57 -03:00
marcos
386bd87385
Add support for file editor
2018-01-05 13:13:07 -03:00
marcos
5332f954dd
Move Oauth configs to the database
2017-12-18 12:14:21 -03:00
marcos
dd6a332889
Add error to GetSession return values
...
- Add button to copy instance SSH access
2017-12-14 17:37:38 -03:00
marcos
efaa37e0ad
Add segment integration
2017-12-01 17:37:20 -03:00
Jonathan Leibiusky
65b8364ef2
Now both index.html and landing.html can be changes for specific ( #224 )
...
playgrounds. By default they will be served from `www/default` if no
override has been specified
2017-11-22 17:32:41 -03:00
Jonathan Leibiusky
f277e3776c
Make it so the playground can decide which index file to serve. ( #223 )
...
* Make it so the playground can decide which index file to serve.
Also remove special index-nw.html and use the current playground config to
decide if to show the windows instances option or not.
* Give a better name to the struct
2017-11-22 16:47:01 -03:00
Jonathan Leibiusky
0ad73acbb9
Add list playgrounds and create/update playground endpoints. ( #221 )
...
User is expected to send a predefined token as basic auth password.
2017-11-21 12:55:34 -03:00
Jonathan Leibiusky
3f5b3882dd
Multiple playgrounds support ( #215 )
...
* Add Playground struct and basic support for creating it and retrieving
it
* Add missing functions in pwd mock
* Get playground from request domain and validate it exists. If valid set
it on the newly created session.
* Move playground specific configurations to the playground struct and use
it everytime we need that conf.
* Don't allow to specify a duration bigger that the allowed in the
playground
2017-11-14 15:50:04 -03:00
Marcos Lilljedahl
3dee0d3f0b
Revert "Remove sensitive information from LoggedUser endpoint"
...
This reverts commit e91a1f3e6f .
2017-11-12 21:28:38 -03:00
Marcos Lilljedahl
e91a1f3e6f
Remove sensitive information from LoggedUser endpoint
2017-11-09 19:21:31 -03:00
Jonathan Leibiusky @xetorthio
0c1320da00
Add ping and metrics endpoint to redirect server
2017-11-09 10:28:48 -03:00
Marcos Nils
c5f0f5fab9
Make me endpoint accessible through CORS. ( #207 )
...
Because the standard router was triggering before the cors one,
a regex not to match `/me` is needed
2017-11-06 13:43:41 -03:00
Jonathan Leibiusky @xetorthio
380e15527b
Merge branch 'websocket_rewrite'
2017-10-31 16:58:36 -03:00
Jonathan Leibiusky @xetorthio
62e948acb4
Merge branch 'master' into next
2017-10-31 16:28:31 -03:00
Jonathan Leibiusky (@xetorthio)
b1406f4ea8
First try on using standard websocket and removing socket.io from the
...
middle
2017-10-19 13:49:14 +02:00
Marcos Lilljedahl
4850a7b496
Add endpoint to retrieve user by userId
2017-10-16 19:43:56 -03:00
Marcos Lilljedahl
8769aa344a
Add methods in CORS requests
2017-10-14 12:50:11 -03:00
Jonathan Leibiusky @xetorthio
e9dd97e4e4
Add Docker ID integration
2017-10-10 15:27:53 -03:00