Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Kryptering av consumerSecret

consumerSecret kan med fördel krypteras. I Weave OSGI console, använd kommandot encrypt följt det faktiska consumerSecret. Ersätt consumerSecret i konfigurationen med resultatet. Exempel:

osgi> encrypt 1234567890
ENCBJZSJQEKPSUMXPACBXCKTTZQPCXJEZGM

Code Block
languagexml
<!-- Enkel anslutning till Lantmäteriet-->
<lmsource:config id="lmsource.main.simple">
	<host>https://api-ver.lantmateriet.se</host> <!-- Notera api-ver är testmiljö -->
	<consumerKey>yourConsumerKeyGoesHere</consumerKey>
	<consumerSecret>ENCUFMECJTEXCTCBSXJBBFAFEQQQSPSUUZPSGEJSEGZXUPCXJTTSUCKJMPTXEKBQSUK</consumerSecret>
</lmsource:config>

<!-- Anslutning med mer konfiguration till Lantmäteriet-->
<lmsource:config id="lmsource.main">
	<host>https://api.lantmateriet.se</host>
	<consumerKey>yourConsumerKeyGoesHere</consumerKey>
	<consumerSecret>ENCUFMECJTEXCTCBSXJBBFAFEQQQSPSUUZPSGEJSEGZXUPCXJTTSUCKJMPTXEKBQSUK</consumerSecret>
	<scope>device_weave1</scope>
	<timeout>15</timeout>
	<disableTests>false</disableTests>
	<testInterval>60000</testInterval>
	<testIntervalWhileFailing>15000</testIntervalWhileFailing>
	<testFailingDuration>300000</testFailingDuration> 
	<testIntervalWhenFailed>600000</testIntervalWhenFailed>
</lmsource:config>