mirror of
				https://github.com/optim-enterprises-bv/databunker.git
				synced 2025-10-31 18:07:47 +00:00 
			
		
		
		
	rename organization
This commit is contained in:
		
							
								
								
									
										12
									
								
								API.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								API.md
									
									
									
									
									
								
							| @@ -247,7 +247,7 @@ Additional parameter is **expiration** specifies TTL for this session record. | |||||||
| ### Example: | ### Example: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| curl -s http://localhost:3000/v1/session/email/test@paranoidguy.com -XPOST \ | curl -s http://localhost:3000/v1/session/email/test@securitybunker.io -XPOST \ | ||||||
|    -H "X-Bunker-Token: "$DATABUNKER_APIKEY -H "Content-Type: application/json" \ |    -H "X-Bunker-Token: "$DATABUNKER_APIKEY -H "Content-Type: application/json" \ | ||||||
|    -d '{"expiration":"3d","clientip":"1.1.1.1","x-forwarded-for":"2.2.2.2"}'` |    -d '{"expiration":"3d","clientip":"1.1.1.1","x-forwarded-for":"2.2.2.2"}'` | ||||||
| {"status":"ok","session":"7a77ffad-2010-4e47-abbe-bcd04509f784"} | {"status":"ok","session":"7a77ffad-2010-4e47-abbe-bcd04509f784"} | ||||||
| @@ -350,7 +350,7 @@ When consent is expired, the status value is changed to **expired**. | |||||||
| Create consent by posting JSON: | Create consent by posting JSON: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XPOST \ | curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XPOST \ | ||||||
|   -H "X-Bunker-Token: $XTOKEN" \ |   -H "X-Bunker-Token: $XTOKEN" \ | ||||||
|   -H "Content-Type: application/json" \ |   -H "Content-Type: application/json" \ | ||||||
|   -d '{"mesasge":"Optional long text here."}' |   -d '{"mesasge":"Optional long text here."}' | ||||||
| @@ -360,7 +360,7 @@ curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XP | |||||||
| Create consent by POSTing user key/value fiels as POST fields: | Create consent by POSTing user key/value fiels as POST fields: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XPOST \ | curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XPOST \ | ||||||
|   -H "X-Bunker-Token: $XTOKEN" |   -H "X-Bunker-Token: $XTOKEN" | ||||||
|   -d 'mesasge=optional+text' |   -d 'mesasge=optional+text' | ||||||
| {"status":"ok"} | {"status":"ok"} | ||||||
| @@ -380,7 +380,7 @@ This API is used to withdraw user consent. | |||||||
| Withdraw consent: | Withdraw consent: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| curl -s http://localhost:3000/v1/consent/email/test@paranoidguy.com/send-sms -XDELETE \ | curl -s http://localhost:3000/v1/consent/email/test@securitybunker.io/send-sms -XDELETE \ | ||||||
|   -H "X-Bunker-Token: $XTOKEN" |   -H "X-Bunker-Token: $XTOKEN" | ||||||
| {"status":"ok"} | {"status":"ok"} | ||||||
| ``` | ``` | ||||||
| @@ -399,10 +399,10 @@ Fetch by user email: | |||||||
|  |  | ||||||
| ``` | ``` | ||||||
| curl --header "X-Bunker-Token: $XTOKEN" -XGET \ | curl --header "X-Bunker-Token: $XTOKEN" -XGET \ | ||||||
|    https://localhost:3000/v1/consent/email/test@paranoidguy.com |    https://localhost:3000/v1/consent/email/test@securitybunker.io | ||||||
| {"status":"ok","total":2,"rows":[ | {"status":"ok","total":2,"rows":[ | ||||||
|    {"brief":"send-email-mailgun-on-login","message":"send-email-mailgun-on-login","status":"accept", |    {"brief":"send-email-mailgun-on-login","message":"send-email-mailgun-on-login","status":"accept", | ||||||
|    "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"email","when":1576154130,"who":"test@paranoidguy.com"}, |    "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"email","when":1576154130,"who":"test@securitybunker.io"}, | ||||||
|    {"brief":"send-sms-twilio-on-login","message":"send-sms-twilio-on-login","status":"accept", |    {"brief":"send-sms-twilio-on-login","message":"send-sms-twilio-on-login","status":"accept", | ||||||
|    "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"phone","when":1576174683,"who":"4444"}]} |    "token":"254d2abf-e927-bdcf-9cb2-f43c3cb7a8fa","mode":"phone","when":1576174683,"who":"4444"}]} | ||||||
| ``` | ``` | ||||||
|   | |||||||
							
								
								
									
										6
									
								
								BUILD.md
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								BUILD.md
									
									
									
									
									
								
							| @@ -19,10 +19,10 @@ Web UI files will be fetched from ui/ directory. | |||||||
|  |  | ||||||
| ## Build container | ## Build container | ||||||
|  |  | ||||||
| It will generate "paranoidguy/databunker" container and save it locally. | It will generate "securitybunker/databunker" container and save it locally. | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| docker build -t paranoidguy/databunker:latest . | docker build -t securitybunker/databunker:latest . | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ## Push container | ## Push container | ||||||
| @@ -31,7 +31,7 @@ docker build -t paranoidguy/databunker:latest . | |||||||
|  |  | ||||||
| ``` | ``` | ||||||
| docker login | docker login | ||||||
| docker push paranoidguy/databunker:latest | docker push securitybunker/databunker:latest | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -51,7 +51,7 @@ echo "Get a list of legal basis objects: $RESULT" | |||||||
| RESULT=`curl -s $DATABUNKER/v1/lbasis/send-sms -XDELETE -H "X-Bunker-Token: $XTOKEN"` | RESULT=`curl -s $DATABUNKER/v1/lbasis/send-sms -XDELETE -H "X-Bunker-Token: $XTOKEN"` | ||||||
| echo "Deleting legal basis object: $RESULT" | echo "Deleting legal basis object: $RESULT" | ||||||
|  |  | ||||||
| RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XPOST \ | RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XPOST \ | ||||||
|    -H "X-Bunker-Token: $XTOKEN"  -H "Content-Type: application/json" \ |    -H "X-Bunker-Token: $XTOKEN"  -H "Content-Type: application/json" \ | ||||||
|    -d '{"lawfulbasis":"contract"}'` |    -d '{"lawfulbasis":"contract"}'` | ||||||
| echo "Giving consent for legal basis obj 2: $RESULT" | echo "Giving consent for legal basis obj 2: $RESULT" | ||||||
| @@ -59,22 +59,22 @@ echo "Giving consent for legal basis obj 2: $RESULT" | |||||||
| RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login -XDELETE -H "X-Bunker-Token: $XTOKEN"` | RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login -XDELETE -H "X-Bunker-Token: $XTOKEN"` | ||||||
| echo "Revoking legal basis object 2: $RESULT" | echo "Revoking legal basis object 2: $RESULT" | ||||||
|  |  | ||||||
| RESULT=`curl -s $DATABUNKER/v1/agreement/contract-approval/email/test@paranoidguy.com -XPOST \ | RESULT=`curl -s $DATABUNKER/v1/agreement/contract-approval/email/test@securitybunker.io -XPOST \ | ||||||
|    -H "X-Bunker-Token: $XTOKEN"  -H "Content-Type: application/json" \ |    -H "X-Bunker-Token: $XTOKEN"  -H "Content-Type: application/json" \ | ||||||
|    -d '{"lawfulbasis":"contract"}'` |    -d '{"lawfulbasis":"contract"}'` | ||||||
| echo "Giving consent for fake legal basis: $RESULT" | echo "Giving consent for fake legal basis: $RESULT" | ||||||
|  |  | ||||||
| RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XDELETE -H "X-Bunker-Token: $XTOKEN"` | RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XDELETE -H "X-Bunker-Token: $XTOKEN"` | ||||||
| echo "Withdraw legal basis 2 consent: $RESULT" | echo "Withdraw legal basis 2 consent: $RESULT" | ||||||
|  |  | ||||||
| echo "Creating user." | echo "Creating user." | ||||||
| RESULT=`curl -s $DATABUNKER/v1/user \ | RESULT=`curl -s $DATABUNKER/v1/user \ | ||||||
|   -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \ |   -H "X-Bunker-Token: $XTOKEN" -H "Content-Type: application/json" \ | ||||||
|   -d '{"fname":"Test","lname":"Account","email":"test@paranoidguy.com","phone":"4444","passportid":"123456789","status":"prospect"}'` |   -d '{"fname":"Test","lname":"Account","email":"test@securitybunker.io","phone":"4444","passportid":"123456789","status":"prospect"}'` | ||||||
| STATUS=`echo $RESULT | jq ".status" | tr -d '"'` | STATUS=`echo $RESULT | jq ".status" | tr -d '"'` | ||||||
| if [ "$STATUS" = "error" ]; then | if [ "$STATUS" = "error" ]; then | ||||||
|   echo "Error to create user, trying to lookup by email. Result: $RESULT" |   echo "Error to create user, trying to lookup by email. Result: $RESULT" | ||||||
|   RESULT=`curl -s $DATABUNKER/v1/user/email/test@paranoidguy.com -H "X-Bunker-Token: $XTOKEN"` |   RESULT=`curl -s $DATABUNKER/v1/user/email/test@securitybunker.io -H "X-Bunker-Token: $XTOKEN"` | ||||||
|   echo "Result: $RESULT" |   echo "Result: $RESULT" | ||||||
|   STATUS=`echo $RESULT | jq ".status" | tr -d '"'` |   STATUS=`echo $RESULT | jq ".status" | tr -d '"'` | ||||||
| fi | fi | ||||||
| @@ -122,7 +122,7 @@ RESULT=`curl -s $DATABUNKER/v1/agreement/send-sms/token/$TOKEN -XPOST \ | |||||||
|    -H "X-Bunker-Token: $XTOKEN" -d "expiration=30s"` |    -H "X-Bunker-Token: $XTOKEN" -d "expiration=30s"` | ||||||
| echo "Enable consent send-sms for user by token: $RESULT" | echo "Enable consent send-sms for user by token: $RESULT" | ||||||
|  |  | ||||||
| RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@paranoidguy.com -XPOST \ | RESULT=`curl -s $DATABUNKER/v1/agreement/core-send-sms-on-login/email/test@securitybunker.io -XPOST \ | ||||||
|    -H "X-Bunker-Token: $XTOKEN"` |    -H "X-Bunker-Token: $XTOKEN"` | ||||||
| echo "Enable consent send-sms for user by email: $RESULT" | echo "Enable consent send-sms for user by email: $RESULT" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ server: | |||||||
| smtp: | smtp: | ||||||
|   # You need to get SMTP server to send out email notification for example to allow user login. |   # You need to get SMTP server to send out email notification for example to allow user login. | ||||||
|   # You can look for a email service company offering SMTP services. You can pick from here: |   # You can look for a email service company offering SMTP services. You can pick from here: | ||||||
|   # https://paranoidguy.com/blog/european-saas-companies/ |   # https://privacybunker.io/blog/european-cloud-saas-vendors/ | ||||||
|   server: "email-smtp-server.com" |   server: "email-smtp-server.com" | ||||||
|   port: 587 |   port: 587 | ||||||
|   user: "user@your-company.com" |   user: "user@your-company.com" | ||||||
| @@ -67,9 +67,9 @@ smtp: | |||||||
| ui: | ui: | ||||||
|   logo_link: "https://logosbynick.com/wp-content/uploads/2018/03/final-logo-example.png" |   logo_link: "https://logosbynick.com/wp-content/uploads/2018/03/final-logo-example.png" | ||||||
|   company_title: "Your company here" |   company_title: "Your company here" | ||||||
|   company_link: "https://paranoidguy.com/" |   company_link: "https://privacybunker.io/" | ||||||
|   term_of_service_title: "Your Terms of service link" |   term_of_service_title: "Your Terms of service link" | ||||||
|   term_of_service_link: "https://paranoidguy.com/" |   term_of_service_link: "https://privacybunker.io/" | ||||||
|   privacy_policy_title: "Your Privacy Policy link" |   privacy_policy_title: "Your Privacy Policy link" | ||||||
|   privacy_policy_link: "https://paranoidguy.com/" |   privacy_policy_link: "https://privacybunker.io/" | ||||||
|   custom_css_link: "" |   custom_css_link: "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 root
					root